Ubuntu Docker Machine - Bobleoble/tech-journal GitHub Wiki

Ubuntu Docker Machine Configuration

This machine, as a Docker machine, can run other pieces of software or entire Operating Systems themselves within containers. In this case, it's used in the rather simple form of hosting a Teamspeak 3 server so that users on the Workstation machines can communicate easily using Teamspeak.

Network Configuration

docker01 configuration

  • Hostname: docker01-unlucky
  • IP Address: 10.0.5.60
  • Primary DNS Address: 10.0.5.5
  • Alternate DNS Address: 10.0.5.6
  • Domain: unlucky.local

Installation of Docker and Docker-Compose

  • Update the list of packages with sudo apt update.
  • Install a package with sudo apt install apt-transport-https ca-certificates curl software-properties-common.
  • Add the GPG key for the Docker repo with curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • Add the Docker repo with sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable".
  • Update list of packages again with sudo apt update.
  • Install Docker with sudo apt install docker-ce.
  • Once it's done, make sure it's running properly with sudo systemctl status docker.
  • Install docker-compose with sudo apt install docker-compose.