Docker RMI deletes the image
Step 1:
If there are relevant containers The container must be deleted first
Step 2:
After making a custom image, docker images will find that the image name is different, but the image ID is the same. Docker cannot recognize it and cannot delete it.
Docker RMI “image name” is required for deletion Instead of ‘mirror ID’.