
上QQ阅读APP看书,第一时间看更新
Installing Docker
Nothing comes without a little effort, so you need to install docker-ce, if you have not done so already.
Let's not mistaken the different Docker packages. There is a system tray for Gnome named docker; the Docker we need used to be packaged as docker.io. It is now packaged under the name docker-ce ( community edition).
First, we need to check whether the three prerequisite packages are installed. To check, perform the following:
sudo apt-get -y install apt-transport-https ca-certificates curl
Then, add the docker.com keys to our local keyset:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the Docker repository to our system (Ubuntu users, I assume you use a 64-bit CPU):
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
If you use Linux Mint, the lsb_release -cs command will not return Docker-supported Ubuntu version names (such as xenial or trusty), but Mint version names such as serena or sarah. Therefore, Linux Mint users should find their equivalent Ubuntu version through https://fr.wikipedia.org/wiki/Linux_Mint#.C3.89ditions_standards and https://wiki.ubuntu.com/Releases and replace $(lsb_release -cs) in the previous command with the result they found (like xenial instead of serena).