Home  >  Article  >  Operation and Maintenance  >  How to install docker on a virtual machine?

How to install docker on a virtual machine?

coldplay.xixi
coldplay.xixiOriginal
2020-06-19 09:19:216509browse

How to install docker on a virtual machine?

How to install docker on a virtual machine?

How to install docker on a virtual machine:

1. Install docker

The command is very simple,

#更新yum软件管理器
yum -y update
 
#安装docker
yum install -y docker

The execution of the command to update the software manager may take a long time, because there may be many software that need to be updated and reinstalled. Wait patiently

This is what it will look like after the update is completed

How to install docker on a virtual machine?

Then install docker

How to install docker on a virtual machine?

## 2. Configure docker accelerator

Execute the following command in linux

How to install docker on a virtual machine?

Then modify the docker configuration file

How to install docker on a virtual machine?

Configure the CDN again,

Add a new parameter in the /etc/resolv.conf file

How to install docker on a virtual machine?

Then restart docker

How to install docker on a virtual machine?

How to install docker on a virtual machine?

Then download this docker.io/java

How to install docker on a virtual machine?

Check whether the image just downloaded successfully,

How to install docker on a virtual machine?

Recommended tutorial: "

docker tutorial"

The above is the detailed content of How to install docker on a virtual machine?. 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