
1. Check whether the relevant version of the operating system meets the prerequisites for installing docker

##2. Add docker source:
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
Copy after login
3. Then check whether the network can be connected, and finally update the source package, as shown below:

4. If there is no problem with the source package update, we now You can use the following 2 commands to install docker with one click:
apt-cache search docker
Copy after login
apt-get install docker-engine
Copy after login
5. If there is no problem with the above installation, finally we use the command:
docker version
Copy after login
to check the installed docker version, as shown in the figure below, we It worked.

Recommended tutorial:
docker tutorial
The above is the detailed content of How to install docker in ubuntu environment. For more information, please follow other related articles on the PHP Chinese website!