When the docker is started from the server, the previous container will also be started, causing some problems.
How to clear the container without opening the docker?
- One way is to uninstall Docker and reinstall it.
- How to remove it without unloading?
The current practice isrm -rf /var/lib/docker
However, all mirror containers, volumes, etc. will be cleared
Dockers ps-a, dockerrm, take a look.