Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Docker remove all exited containers

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

docker remove all exited containers

docker container prune
Comment

remove all container exited

sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
Comment

docker remove exited containers

(docker ps -a |findstr Exited) | foreach-object {docker rm $_.split(" ")[-1]}
Comment

Docker automatically delete container once exited

$ docker container prune
WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] y
Deleted Containers:
4a7f7eebae0f63178aff7eb0aa39f0627a203ab2df258c1a00b456cf20063
f98f9c2aa1eaf727e4ec9c0283bcaa4762fbdba7f26191f26c97f64090360

Total reclaimed space: 212 B
Comment

PREVIOUS NEXT
Code Example
Shell :: How to grep for file name recursively with some file content 
Shell :: git save username and password 
Shell :: set all permissions to folder in ubuntu 
Shell :: list of running ports linux 
Shell :: bash for file in folder 
Shell :: remove netbeans linux 
Shell :: brew xampp 
Shell :: upgrade pytest version 
Shell :: Unable to connect to libvirt qemu:///system. 
Shell :: install vlc on ubuntu 
Shell :: bitbucket delete remote tag 
Shell :: conda install pytorch lightning 
Shell :: npm install material ui icons 
Shell :: completely remove ros melodic 
Shell :: how to get ram detail in linux 
Shell :: sudo kill port windows 
Shell :: fatal: The current branch master has multiple upstream branches, refusing to push. 
Shell :: nginx by brew 
Shell :: conda install cufflinks 
Shell :: remove env file from git 
Shell :: find process id of port ubuntu 
Shell :: get database url heroku 
Shell :: zsh add to path permanently 
Shell :: install vercel npm 
Shell :: hardhat init 
Shell :: docker check running containers 
Shell :: conda install pyserial 
Shell :: pod reinstall 
Shell :: list usb devices linux 
Shell :: Waiting for your editor to close the file... 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =