Home > Article > Operation and Maintenance > How to install docker in ubuntu environment
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.list3. Then check whether the network can be connected, and finally update the source package, as shown below:
apt-cache search docker
apt-get install docker-engine5. If there is no problem with the above installation, finally we use the command:
docker versionto check the installed docker version, as shown in the figure below, we It worked.
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!