Home>Article>Operation and Maintenance> How to install docker in ubuntu environment

How to install docker in ubuntu environment

王林
王林 Original
2020-04-15 15:05:45 2398browse

How to install docker in ubuntu environment

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

How to install docker in ubuntu environment

##2. Add docker source:

echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list

3. Then check whether the network can be connected, and finally update the source package, as shown below:


How to install docker in ubuntu environment

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
apt-get install docker-engine

5. If there is no problem with the above installation, finally we use the command:

docker version

to check the installed docker version, as shown in the figure below, we It worked.


How to install docker in ubuntu environment

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn