Docker installation and problem solving (ubuntu16.04)

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_37338761/article/details/90697027

Installation Preparation:
can be networked virtual machines that
my version is ubuntu16.04

By docker domestic source of mirrors apt to install the latest Docker CE (Community Edition), namely Docker Community Edition

1.Ubuntu 16.04 official version of the software already comes with Docker source package, you need to update an earlier version

# sudo apt-get remove docker docker-engine docker-ce docker.io

2. Update apt Package Index:

# sudo apt-get update

3. The following packages are apt to be used so that the repository (Repository) via HTTPS:

# sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-commo

4. Add Docker official GPG key:

# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Guess you like

Origin blog.csdn.net/qq_37338761/article/details/90697027