(5) Delete the image file

1. Query the image to be deleted

docker images


2. Stop the process first and then delete it

 docker ps -a checks the corresponding image id process and verifies whether the process exists

 docker rm f0b delete the corresponding container id process

docker rmi 116  delete the corresponding image id

docker images Check if the image still exists

 

Note: Before deleting a process, make sure that the state of the process is Exited. If it is up, stop it first, and then delete it. The operation is as follows.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325516551&siteId=291194637