Ubuntu16.04 installation Docker CE
Install the official document: https://docs.docker.com/install/linux/docker-ce/ubuntu/
Before installing Docker CE for the first time on the new host, you need to set Docker repository. After that, you can install and update Docker from the repository.
Setting repository
1. Update the apt package Index:
sudo apt-get update
effect:
2. apt to allow the installation package store by using HTTPS:
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
Renderings:
3. Add the GPG key Docker's official:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Renderings:
4. Use the following command set stable repository.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Renderings:
Installation DOCKER CE
1. Update the apt package index.
sudo apt-get update
Renderings:
2. Install the latest version of Docker CE and containerd, or go to the next step to install a specific version:
sudo apt-get install docker-ce docker-ce-cli containerd.io
FIG effect;
3. hello-world images by running
sudo docker run hello-world
Renderings: