Home > Article > Operation and Maintenance > 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
Then install docker
## 2. Configure docker accelerator
Execute the following command in linux Then modify the docker configuration file Configure the CDN again, Add a new parameter in the /etc/resolv.conf file Then restart docker Then download this docker.io/java Check whether the image just downloaded successfully, 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!