What should I do if there is an error when starting the docker service?

藏色散人
Release: 2020-05-16 11:28:47
Original
2905 people have browsed it

What should I do if there is an error when starting the docker service?

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
Copy after login

Then use find from the root directory Search to find all files containing docker

find / -name ‘*docker*’
Copy after login

or cd to the root directory and search:

find -name ‘*docker*’
Copy after login

What should I do if there is an error when starting the docker service?

Delete the searched files or directories:

rm -rf .....
Copy after login

What should I do if there is an error when starting the docker service?

Then reinstall docker:

yum install docker-ce -y
Copy after login

What should I do if there is an error when starting the docker service?

Start docker to solve the problem

systemctl start docker
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!