作用
刪除一個或多個鏡像
語法格式
docker rmi [OPTIONS] IMAGE [IMAGE...]
options 說明
實際栗子
刪除鏡像,且不帶 tag
docker rmi hello-world
刪除鏡像,且帶 tag
docker rmi -f tomcat:latest
刪除一個或多個鏡像
docker rmi [OPTIONS] IMAGE [IMAGE...]
options 說明
刪除鏡像,且不帶 tag
docker rmi hello-world
刪除鏡像,且帶 tag
docker rmi -f tomcat:latest
https://stackoverflow.com/questions/419163/what-does-if-name-main-do