文章转载来源
https://beansroasted.wordpress.com/2017/08/03/install-docker-ce-on-ubuntu-14-04-trusty/
Install Docker CE on Ubuntu 14.04 (Trusty)
1] Uninstall older versions of docker if any.
sudo apt-get remove docker docker-engine docker.io
2] Update the repository
sudo apt-get update
3] Install recommended extra packages for Trusty 14.04
sudo apt-get install \ linux-image-extra-$(uname -r) \ linux-image-extra-virtual
4] Update apt-get and install packages to allow apt to use a repository over HTTPS
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
5] Add docker GPG file
curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo apt-key add -
6] Verify fingerprint
sudo apt-key fingerprint 0EBFCD88
7] Use following commands to setup stable repository. You can also install builds from test and edge repositories.
sudo add-apt-repository \ "deb [arch=amd64] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) \ $(lsb_release -cs) \ stable"
8] Update apt and install docker ce
sudo apt-get update sudo apt-get install docker-ce
To test if docker has been installed correctly, execute the following command.
sudo docker run hello-world
To list all the docker local container:
docker ps -a
网友评论