How To Remove Docker Image & Container
How To Remove Docker, I’m having some docker images downloaded from the docker hub & I will delete images & container on the server. you can remove docker unused images by force using the name.
Check Out: Find IpAddress of a container
I have already created a MySQL container if you don’t know how to create a container check it out Create Container here.
Check Out: Create Apache Docker Image Using Docker file
Here are two containers running, I will remove MySQL container here, first, you will have to stop the to container before deleting it.
docker stop 78e701a98334
As you can see I have stopped the container & checked the running container & delete it with Container ID as shown in below figure
Now See there is only one container running,
Remove Container Images
Here I have deleted the image of MySQL,
docker rmi 8b6ff3f79840
As you can see after deleting the image of MySQL. There is no MySQL image available.
YouTube Link: Remove Docker Images
That’s it. Docker remove images force by name unused