# run in Linux bash commands to set up the Docker repository for the first time on a host machine
sudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
# run in Linux bash install commands:
sudo apt-get update sudo apt-get install docker sudo apt-get install docker-compose sudo apt-get install postgresql-client-common
# run in Linux bash post-install commands:
sudo groupadd docker sudo usermod -aG docker $USER
# check docker version commands:
sudo docker -v sudo docker-compose -v
# run in Linux bash commands:
# Build sudo docker-compose build # Running sudo docker-compose up -d # View instances sudo docker-compose ps