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

when you start docker from the server, it also starts the previous container, causing some problems.

how to clear the container without enabling docker?

  • one way is to uninstall Docker and reinstall it.
  • how to clear it without uninstalling it?

the current practice is rm-rf / var/lib/docker , but all mirror containers, volumes, etc.

are cleared.
Apr.08,2021

docker ps-a, docker rm.

Menu