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

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 :: create new branch git 
Shell :: linux list environment variables 
Shell :: turn off jenkins mac 
Shell :: open xampp in ubuntu 
Shell :: a) Write a shell script to list all of the directory files in a directory. 
Shell :: shell script get branch name 
Shell :: git abort changes 
Shell :: where is ubuntu home directory on windows 
Shell :: hydra use find password cracker 
Shell :: git credential manager 
Shell :: Ping with Timestamps 
Shell :: google translate for linux 
Shell :: bash get kernel version 
Shell :: Connect to a VM instance by using SSH. 
Shell :: how to add image in readme.md 
Shell :: mount docker volume in container 
Shell :: git log my commits 
Shell :: terminator for kali linux 
Shell :: bash delete swap file 
Shell :: how to print cpu usage of threads in process ubuntu 
Shell :: wsl --install 
Shell :: poetry python install 
Shell :: convert epoch timestamp to human readable format on osx 
Shell :: git ignore 
Shell :: bash escape special characters in variable 
Shell :: main vs master in git 
Shell :: how to install bootstrap in angular 
Shell :: tkcalendar install 
Shell :: night light for ubuntu 
Shell :: docker pack image to file 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =