docker force remove container 1

docker force remove container

$ docker rm $(docker ps -a -q)

Here is what the above code is Doing:
1. docker ps -a -q: This command will list all the containers.
2. docker rm $(docker ps -a -q): This command will remove all the containers listed in the previous command.

Similar Posts