What to do if an error occurs when running docker

藏色散人
Release: 2020-03-16 13:04:34
Original
2825 people have browsed it

What to do if an error occurs when running docker

What should I do if I get an error when running docker?

Use the command to uninstall the related components that have been installed:

$ 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 to search from the root directory to find all files containing docker

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

or cd After reaching the root directory, search:

find -name ‘*docker*’
Copy after login

What to do if an error occurs when running docker

Delete the searched file or directory:

rm -rf .....
Copy after login

What to do if an error occurs when running docker

Then reinstall docker. Can:

yum install docker-ce -y
Copy after login

What to do if an error occurs when running docker

Start docker to solve the problem

systemctl start docker
Copy after login

Notes

When deleting files or directories, pay attention to all the paths. Don’t delete it by mistake

Recommended learning: docker tutorial.

The above is the detailed content of What to do if an error occurs when running docker. 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