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 :: how to check linux distro from terminal 
Shell :: Syntax Error: TypeError: this.getOptions is not a function 
Shell :: pip install from requirements.txt 
Shell :: how to install gh-pages 
Shell :: git rename master to main 
Shell :: linux check if a port is open 
Shell :: abort cherry pick in bash 
Shell :: cocoapods not installed flutter mac 
Shell :: ubuntu check process on port 
Shell :: npm install redux and react-redux 
Shell :: turn on bluetooth ubuntu terminal 
Shell :: download play list youtube-dl 
Shell :: uninstall nginx 
Shell :: how to unistall and reinstall latest composer in mac 
Shell :: git ignore not working 
Shell :: run msi on linux 
Shell :: stop all kubernetis pods 
Shell :: ubuntu list users 
Shell :: install vee validate 
Shell :: public class FileProvider extends android.support.v4.content.FileProvider 
Shell :: create venv ubuntu 20.04 
Shell :: ssh force use password 
Shell :: macos install chromium 
Shell :: list all ssh connections ubuntu 
Shell :: delete postmaster.pid mac 
Shell :: git pull all branches at once 
Shell :: install wine ubuntu 
Shell :: update kali 
Shell :: linux remove java 11 
Shell :: install dig 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =