How to remove a docker image


 description

Docker can quickly delete downloaded images through simple commands. You can view downloaded images through docker images, and delete corresponding containers through image name or image ID.

 command

docker rmi hello-world

 parameter

docker :  An open source application container engine that allows developers to package their applications and dependencies into a portable image
rmi :  remove one or more images

 result

Untagged: hello-world:latest
Untagged: hello-world@sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f
Deleted: sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412
Deleted: sha256:e07ee1baac5fae6a26f30cabfe54a36d3402f96afda318fe0a96cec4ca393359
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.