What should I do if there is an error when starting the docker service?
Solution to the error when Docker starts the service
Use the command to uninstall the installed related components:
$ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine
Then use find from the root directory Search to find all files containing docker
find / -name ‘*docker*’
or cd to the root directory and search:
find -name ‘*docker*’
Delete the searched files or directories:
rm -rf .....
Then reinstall docker:
yum install docker-ce -y
Start docker to solve the problem
systemctl start docker
Precautions
When deleting files or directories, pay attention to all the paths and do not delete the wrong ones
Recommendation: "docker tutorial"
The above is the detailed content of What should I do if there is an error when starting the docker service?. For more information, please follow other related articles on the PHP Chinese website!