Friday, 26 June 2020

DOCKER - HOW TO REMOVE A CONTAINER PERMERANTLY

HOW TO REMOVE A CONTAINER PERMANENTLY


If we want to remove the docker container permanently, 

run the command - docker rm (Provide the name of the container or ID)


In the below example, we see that we have 2 exited containers


Now we will delete the 2 exited comtainers:- flamboyant_hodgkin and sleepy_swirles

We can verify if the both the containers are deleted, by running 
the command - docker ps -a

1 comment:

  1. Really helpful down to the ground, happy to read such a useful post. I got a lot of information through it and I will surely keep it in my mind. Keep sharing. If you are looking for some useful data and information regarding Docker Health Check then visit Coding Dolphin.

    ReplyDelete