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.
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!