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.