docker ubuntu16 installation

Due to the need to install opendronemap, and this depends on the docker, thus recording a bit steps to install docker relatively simple. Install the latest Docker CE (Community Edition) by docker official source apt, that Docker Community Edition, is a developer and small teams the ideal choice.

Start the installation
due to the docker official version apt repository may be older, so uninstall the old version may exist:
$ sudo apt-GET-Engine the Remove docker docker docker-ce docker.io
update package apt index:
$ sudo apt-GET Update
the following packages are apt to cause the repository may be used by the HTTPS (repository):
$ the install the sudo apt -Y-GET-apt HTTPS Transport-CA-Certificates-curl Properties Common Software-
added Docker official GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
use the following command to set the stable repository:
$ sudo the Add-APT-repository "deb [Arch = AMD64] HTTPS: // download.docker.com/linux/ubuntu $ (lsb_release -cs) stable "
and then update the look apt index of the package:
$ sudo apt-GET update
to install the latest version of the CE Docker:
$ sudo apt-GET install -y docker-ce
verification docker
View docker service is started:
$ systemctl Status docker

If not started, start docker service:
$ sudo systemctl Start docker
classical world of the Hello:
$ sudo docker RUN the Hello-world

 

Guess you like

Origin www.cnblogs.com/cxhzy/p/10947760.html