Quick tips on removing failed Docker container and images

Remove docker containers that’s exited

docker rm $(docker ps -a -f “status=exited” -q)
docker container prune

Remove docker images that’s dangling

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
docker image prune

Reference

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

[LeetCode]#69. Sqrt(x)

Installing Spinnaker on Minikube using Helm

[LeetCode]#1260. Shift 2D Grid

Oracle Cloud Developer Solutions: HCM Cloud PaaS Extension

Code Wars is best platform for learning algorithm from programming language, here I want to write…

Running SMTP locally for development

Creating Moodle Users Via API with MoodleRest.php

Using Ghidra with Smart Contracts (Part 1)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stephen Cow Chau

Stephen Cow Chau

More from Medium

HIEA 122 Final Assignment

Ainu

Understanding Proxy and Reverse Proxy Servers

https://networkencyclopedia.com/proxy-server/

GUI Container On The Docker

Automatic testing equipment: JTAG Boundary-scan