Articles → DOCKER → Commands For Deleting The Container And The Docker Image

Commands For Deleting The Container And The Docker Image






Prerequisite





Deleting The Container




docker stop <container Id>




docker stop `docker ps -q`




docker rm <container Id>




docker rm `docker ps -a -q`



Deleting The Image




docker rmi <image Id>




docker rmi `docker images -q -a`



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, March 15, 2023
 
Updated On  -  Wednesday, February 7, 2024

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250