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

How to install docker in ubuntu environment

王林
Release: 2020-04-15 15:05:45
Original
2505 people have browsed it

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
Copy after login

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
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.


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template