Docker installation and status query instructions

1. Install Docker

  $ yum install -y docker-engine

 

2. Start docker

  $systemctl start docker.service

 

 

3. Verify that the installation is successful (there are two parts, client and service, indicating that the docker installation and startup are successful)

Use the docker version command to view

 

4, set the boot to start automatically

 $ sudo systemctl enable docker

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325135597&siteId=291194637