Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove stopped containers

$ docker rm $(docker ps -a -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 :: docker permission denied dial 
Shell :: unable to locate package ubuntu 
Shell :: r installation on ubuntu 
Shell :: brew portkill 
Shell :: install eclipse in fedora 
Shell :: ls with file size 
Shell :: install rollup locally 
Shell :: list all files by size 
Shell :: how to kill a process with linux 
Shell :: git user config 
Shell :: bash for each line of file 
Shell :: how to unadd gitr file 
Shell :: how to remove your phone 
Shell :: git clone to path 
Shell :: openssh client ubuntu 
Shell :: ubuntu know username 
Shell :: how do i make a gif from youtube 
Shell :: react icons installation through npm 
Shell :: install ionic native run 
Shell :: how to get last in array jq 
Shell :: remove migration 
Shell :: npm install bootstrap 3 
Shell :: git clone specific branch 
Shell :: git readme show image 
Shell :: install realtek rtl88xxau usb wifi driver ubuntu 
Shell :: Failed to install the following Android SDK packages as some licences have not been accepted. 
Shell :: git remove file from tracking without deleting 
Shell :: install flask in venv 
Shell :: install brew m1 mac 
Shell :: git push origin master not working 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =