Home  >  Article  >  Operation and Maintenance  >  What to do if docker reinstallation fails

What to do if docker reinstallation fails

藏色散人
藏色散人Original
2022-11-04 13:53:252088browse

Docker reinstallation failed because the "docker-proxy" file was inexplicably locked and could not be overwritten during reinstallation. The solution was to use "chattr -i docker-proxy" to unlock it and then reinstall it. Can.

What to do if docker reinstallation fails

The operating environment of this tutorial: Windows 7 system, Docker version 20.10.11, Dell G3 computer.

What should I do if docker reinstallation fails?

Docker reinstallation failed docker-proxy rename pio

This problem is due to the docker-proxy file being locked inexplicably and cannot be overwritten during reinstallation, causing the docker installation to fail.

My side indirectly caused a minio docker container to fail to start, prompting that port 9000 was occupied, but port scanning was not used. There must be a problem with iptables or docker container configuration. It is suspected that the docker file is damaged during the restart. But troubleshooting this thing is too troublesome. The easiest thing is to reinstall it.

Reinstallation prompts that docker-proxy is occupied and the installation of docker-ce fails.

Finally, through lsattr docker-proxy, I found that the attribute has --i, which means it is locked.

Use chattr -i docker-proxy to unlock it, and then the installation can be successful.

Similarly, if there are files whose file permissions cannot be modified, it may be the same problem. The above

recommended learning: "docker video tutorial"

The above is the detailed content of What to do if docker reinstallation fails. 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