How do I clear the container to start before starting Docker?

  docker, question

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/dockerHowever, all mirror containers, volumes, etc. will be cleared

Dockers ps-a, dockerrm, take a look.