이미지 리스트 확인하기
sudo docker images -aq {docker_hub_url}/{이미지_이름}
로그 및 결과:
f5269fbfe7d2
4711fd825c1a
236acb80b4ec
확인된 이미지 리스트 모두 삭제하기
강제로 삭제하려면 -f 옵션을 추가한다.
//삭제
sudo docker rmi `sudo docker images -aq {docker_hub_url}/{이미지_이름}
// 강제 삭제 (-f)
sudo docker rmi -f `sudo docker images -aq {docker_hub_url}/{이미지_이름}
로그 및 결과:
++ sudo docker images -aq {docker_hub_url}/{이미지_이름}
+ sudo docker rmi -f f5269fbfe7d2 4711fd825c1a 236acb80b4ec
Untagged: {docker_hub_url}/{이미지_이름}:71
Untagged: {이미지_이름}:71
Deleted: f5269fbfe7d22c84b99d6a469ca7ac033ccad5b764502471e3b3211321474ac9
Deleted: 6b48cd2ea0ad3f694d79303a2f51d051ebf69bf0b765c35efc5d927f25aa3703
Untagged: {docker_hub_url}/{이미지_이름}:70
Untagged: {이미지_이름}:70
Deleted: 4711fd825c1ab24bc62addaea2f7d498494522f0fc44973811021e5064b50132
Deleted: 8c61414c4c2e92fc8fb90371fbe2b630d8d7984f9c67b12840771f4c9cac01d2
Untagged: {docker_hub_url}/{이미지_이름}:69
Untagged: {이미지_이름}:69
Deleted: 236acb80b4ec3c0d4587413e2d7ca298f54f51ecad515da5280b9ff0073d593a
Deleted: 8761ef27b159afc864b18b8909fa4ec333cfa2985d5957488a31ff72fe8e0576
Untagged: {docker_hub_url}/{이미지_이름}:68
Untagged: {이미지_이름}:68