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 :: shell write multiple lines to file 
Shell :: docker remove all images with name <none 
Shell :: hyper v powershell windows 
Shell :: How to kill all tmux sessions (or at least multiple sessions) from the CLI? 
Shell :: Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. 
Shell :: install shutter ubuntu 
Shell :: git stash apply specific index 
Shell :: Find what is running on port 8000 
Shell :: sudo /opt/lampp/lampp start not working on linux 
Shell :: How do I select which GPU to run a job on? 
Shell :: mdi 5.6.55 
Shell :: linu xcreate folder link 
Shell :: upgrade pip error 
Shell :: linux ls directories only 
Shell :: how to run sudo without password 
Shell :: install package from conda forge not found in conda 
Shell :: markdown terminal code 
Shell :: arch hwo ot knwo th eversion of a package 
Shell :: commit convention 
Shell :: how to commit single / multiple file in git 
Shell :: Authentication is required to create a color managed device 
Shell :: kill all processes by name cmd 
Shell :: bash convert symlinks to actual files 
Shell :: kill apache Failed to restart apache: [apache] 
Shell :: check solidity version 
Shell :: ffmpeg take screenshot 
Shell :: asdf current 
Shell :: how to check my git username 
Shell :: install gnome-shell-extensions 
Shell :: npm install line awesome 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =