Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove stopped containers

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

docker remove all stopped

$ docker rm $(docker ps --filter status=exited -q)
Comment

remove all stopped containers

$ docker rm $(docker ps --filter status=exited -q)
$ docker ps --filter status=exited -q | xargs docker rm
Comment

delete all stopped docker containers

sudo docker system prune -af
Comment

Delete all running and stopped containers

docker container rm -f $(docker ps -aq)
Comment

PREVIOUS NEXT
Code Example
Shell :: creating copy of a branch 
Shell :: install drush ubuntu 20.04 
Shell :: Create Local Github Repo 
Shell :: git remove without deleting 
Shell :: npmrc file location windows 
Shell :: command to check pip3 version on linux 
Shell :: install choco windows 10 
Shell :: how to install pycharm on ubuntu 
Shell :: ignore commited files 
Shell :: enable systemd service linux 
Shell :: como fazer commit github 
Shell :: if -z in bash 
Shell :: helm repo list charts 
Shell :: ubuntu echo create file readme.md 
Shell :: install bootstrap in gatsbyjs 
Shell :: npm http server 
Shell :: undo last commit 
Shell :: check my localhost command 
Shell :: git commands 
Shell :: install xcode terminal 
Shell :: shell script get arguments 
Shell :: maven test skip 
Shell :: set name and email git 
Shell :: brew portkill 
Shell :: git stash abort 
Shell :: sudo cd 
Shell :: git stash apply undo merge conflict 
Shell :: stop port 
Shell :: No package mongodb-org available. 
Shell :: react icons installation through npm 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =