sudo apt-get install curl
Add Docker-Ubuntu's repository key to APT's trusted package sources:
curl --fail --silent --show-error --location https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-get install software-properties-common
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
It should be available from previously installed Docker-repository:
apt-cache policy docker-ce
Should output something similar to:
docker-ce:
Installed: (none)
...
sudo apt-get install -y docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
Take the new group in use with: su - ${USER}
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo apt install curl
(if missing)
Add Docker-Ubuntu's repository key to APT's trusted package sources:
curl --fail --silent --show-error --location https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt install software-properties-common
(if missing)
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
It should be available from previously installed Docker-repository:
apt-cache policy docker-ce
Should output something similar to:
docker-ce:
Installed: (none)
...
sudo apt install -y docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
Take the new group in use with: su - ${USER}
curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-$(uname -s)-$(uname -m) -o ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Should ouput something similar to:
docker-compose version 1.18.0, build 8dd22a9