Installing Ubuntu 19.10 with latest docker, docker-compose.
Install latest Ubuntu 19.10 and then upgrade to latest
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install curl python3.7 python-venv
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo bash -c 'echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable" > /etc/apt/sources.list.d/docker-ce.list'
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
To avoid having to use sudo
, do:
sudo usermod -aG docker ${USER}
su ${USER}
id -nG
docker run hello-world
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version