■ docker system prune 명령을 사용해 사용하지 않는 리소스를 일괄 삭제하는 방법을 보여준다.
1. [명령 프롬프트]를 실행한다.
2. 아래 스크립트를 실행한다.
▶ 실행 명령
1 2 3 |
C:\>docker system prune -a |
※ -a : 사용하지 않는 리소스 모두 삭제 옵션
3. 실행 결과는 아래와 같다.
▶ 실행 결과
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all images without at least one container associated to them - all build cache Are you sure you want to continue? [y/N] y Deleted Networks: HvsiIcs 기본 스위치 Deleted Images: deleted: sha256:6eac13983e7f20010338df028c8793b90566bd244530ce3e5ee2ac22137a33c1 deleted: sha256:d6a8467b1c7666d032b424f9883b7b31125681d77606479c39d9b44ad578a631 deleted: sha256:b59e3f0f8680137fb5d174128c4f14c0836dd4350d5a410802e2f3d39fe9cb80 deleted: sha256:f7dc3c1cc722a5e83185080f37b2f3ace61cdebfc1ae91421229832a7203767a deleted: sha256:11c9c6d6d162fedb1b255b6ff31af3e0b752ae714ef349d42bed3ff7baae27f8 deleted: sha256:4855b8c3b2d4f799333413d6df1e55333299ae0dbd30cd34c685eeb81bb5b3b3 untagged: microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-1803 untagged: microsoft/dotnet-framework@sha256:4f042ff437d9dd377c83b1774ae0243ee2708fe2f75608b7af9d9a65e2ce360f deleted: sha256:373c9b9a6d5c7d5ecfb6b90d017dce3b3d7aa67b9efaad626a126ebeba23c9f7 Total reclaimed space: 102.6kB |