Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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")
Source by oracle-base.com #
 
PREVIOUS NEXT
Tagged: #clean #untagged #docker #images
ADD COMMENT
Topic
Name
1+6 =