remove stopped containers
$ docker rm $(docker ps -a -q)
remove stopped containers
$ docker rm $(docker ps -a -q)
docker remov all running containers
docker rm $(docker ps -aq)
docker remove not running containers
docker container rm $(docker container ls –aq)
docker remove all stopped
$ docker rm $(docker ps --filter status=exited -q)
docker remove container
//Check if the container is running
docker ps -a
//stop the container
docker stop <container_id>
//remove the container
docker rm <container_id>
remove all stopped containers
$ docker rm $(docker ps --filter status=exited -q)
$ docker ps --filter status=exited -q | xargs docker rm
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us