Technical work, should be praised and then see, form a habitCopy the code

Docker use tutorial related series of directories


Yum is installed by default

yum install docker
Copy the code

Enter Y for all choices

If Complete is displayed, the installation is successful

2, Check docker version

docker -v
Copy the code

Docker starts and closes

Docker activation:

systemctl start docker.service
Copy the code

Docker restart:

systemctl restart docker.service
Copy the code

Docker closed:

systemctl stop docker.service
Copy the code

Check docker status:

systemctl status docker.service
Copy the code