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 :: ls show octal permissions 
Shell :: how to uncommit my last commit in git 
Shell :: git asking for password every time 
Shell :: magento 2 check version command line 
Shell :: apache enable site 
Shell :: ubuntu list users 
Shell :: kill all processes by user 
Shell :: how to change port apache ubuntu 
Shell :: ubuntu clean up disk space 
Shell :: how to install postman in ubuntu 
Shell :: install pavucontrol ubuntu 20.04 
Shell :: clear swap memory linux 
Shell :: remove all cache ubuntu 
Shell :: apt list installed 
Shell :: rm files with extension 
Shell :: install sklearn in pycharm 
Shell :: install ifconfig on ubuntu 
Shell :: install docker-compose ubuntu 
Shell :: install kazam ubuntu 20.04 
Shell :: how to kill tasks using grep 
Shell :: how to unzip in gitbash 
Shell :: update kali 
Shell :: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: update npm with nvm 
Shell :: inkscape ubuntu ppa 
Shell :: if variable has substring in bash 
Shell :: remove orphan packages arch linux 
Shell :: what is Grepper Contributor Coin (GREPCC) 
Shell :: git get repository url 
Shell :: check folder sizes linux 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =