Home  >  Article  >  Operation and Maintenance  >  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?

藏色散人
藏色散人Original
2020-05-16 11:28:472905browse

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

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*’

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

Delete the searched files or directories:

rm -rf .....

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

Then reinstall docker:

yum install docker-ce -y

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

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!

Statement:
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
Previous article:What does docker ee mean?Next article:What does docker ee mean?