Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker remove all untagged images

# docker rmi $(docker images --filter "dangling=true" -q)
Comment

clean up untagged docker images

# Remove all containers that aren't running.
docker rm -vf $(docker ps -a -q --filter "status=exited")

# Remove untagged images.
docker rmi -f $(docker images -q -f "dangling=true")

# Remove unused volumes using "rm" or "prune".
docker volume rm -f $(docker volume ls -f "dangling=true")
docker volume prune -f

# Remove unused networks.
docker network prune -f
Comment

clean up untagged docker images

# Remove an individual container by ID or name.
# Use "-v" or "--volumes" to remove associated volumes.
# Use "-f" or "--force" to remove running containers.
docker rm -vf b0479f9d1ea4
docker rm --volumes --force ol7_ords_con

# Remove all the containers matching the "ps" output.
docker rm -vf $(docker ps -a -q --filter "status=exited")
Comment

PREVIOUS NEXT
Code Example
Shell :: how to print the active user id in linux 
Shell :: download from gdrive link command line 
Shell :: locale-gen fa_IR.UTF-8 ubuntu 
Shell :: see pm2 logs 
Shell :: ubuntu get ram usage 
Shell :: install mod_wsgi 
Shell :: create a ssh key 
Shell :: cannot open display: :0 wsl 
Shell :: linux view kernel version 
Shell :: install rvm ubuntu 20.04 
Shell :: check storage in ubuntu terminal 
Shell :: bobrossquotes terminal 
Shell :: kdenlive dark mode for linux 
Shell :: microstack no internet connection 
Shell :: polyblog install command 
Shell :: view index not found. laravel 
Shell :: install from github pip 
Shell :: debug logstash stdout 
Shell :: accessing settings through cmd 
Shell :: bash how to remove rows if specific field is blank 
Shell :: install eslint 
Shell :: typescript diagnostics 
Shell :: get filebeat version 
Shell :: how to extract key and cert from pfx 
Shell :: bash replace multiple patterns 
Shell :: insufficient permission for adding an object to repository database .git/objects 
Shell :: discord on linux 
Shell :: run bash script in its directory 
Shell :: git diff exclude file 
Shell :: bash run inline command 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =