728x90
Docker Image 리스트 확인 및 삭제
GitLab 보안 업데이트의 후유증으로.. 다운로드 받은 이미지가 너무 많다. 도커에 할당된 용량의 많은 부분을 차지하므로 사용하지 않는 이미지는 삭제하여 관리하자.
- 파일시스템 용량 확인
$ df -h
Filesystem Size Used Avail Use% Mounted on
overlay 100G 71G 30G 71% /data/docker/overlay2/83f07909b8c28bd4e26d9de00bcfa9574759714fd9413ab6d516b8dbc5f84c20/merged
shm 64M 0 64M 0% /data/docker/containers/8f10e260aa5ff5abec87d87b7297277f2529b2031c65eea242183fa6d6ce1cbb/mounts/shm
overlay 100G 71G 30G 71% /data/docker/overlay2/f6876a905e4ab12f2ca7cd5e14097e11f78c4c00618885eb0d73cf02c000e0bf/merged
shm 64M 3.7M 61M 6% /data/docker/containers/00025d2e79fc4622c697190639205da3296270e8ddad0d97feb9d20b1f5338af/mounts/shm
- Docker Image 리스트 확인
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
gitlab/gitlab-ce 15.1.5-ce.0 8c93566062ef 8 days ago 2.55GB
gitlab/gitlab-ce 15.1.2-ce.0 0bd8093d0f97 8 weeks ago 2.54GB
gitlab/gitlab-ce 15.1.0-ce.0 37bddafb036f 2 months ago 2.54GB
gitlab/gitlab-ce 15.0.2-ce.0 d3223c529831 2 months ago 2.49GB
gitlab/gitlab-ce 14.9.5-ce.0 c99393c4ee7f 3 months ago 2.45GB
gitlab/gitlab-ce 14.10.4-ce.0 b1272c6e1c6e 3 months ago 2.46GB
gitlab/gitlab-ce 14.3.6-ce.0 7e6628afc6ac 8 months ago 2.29GB
gitlab/gitlab-ce 14.0.12-ce.0 e799befc0722 9 months ago 2.21GB
gitlab/gitlab-ce 13.12.15-ce.0 c2fd584fe872 10 months ago 2.25GB
gitlab/gitlab-ce latest cb10c65dbb7b 10 months ago 2.31GB
gitlab/gitlab-ce 14.0.11-ce.0 31cdd7657b22 11 months ago 2.21GB
hello-world latest feb5d9fea6a5 11 months ago 13.3kB
gitlab/gitlab-ce 14.0.0-ce.0 db71bbad3cdc 14 months ago 2.21GB
gitlab/gitlab-ce 13.11.0-ce.0 3d6dd1b4ad18 16 months ago 2.23GB
gitlab/gitlab-ce 13.8.8-ce.0 0bbf0a4493ba 16 months ago 2.17GB
gitlab/gitlab-ce 13.9.0-ce.0 f1a15e01817b 18 months ago 2.18GB
gitlab/gitlab-ce 13.1.11-ce.0 07138739d0e2 24 months ago 1.87GB
gitlab/gitlab-ce 13.0.14-ce.0 c5b3d9743731 2 years ago 1.82GB
gitlab/gitlab-ce 12.10.14-ce.0 e4e2cab224d6 2 years ago 2GB
gitlab/gitlab-ce 13.0.0-ce.0 787dc5b188ed 2 years ago 1.81GB
jenkins/jenkins lts b20659948103 2 years ago 997MB
gitlab/gitlab-ce 12.9.2-ce.0 e6b464b98aff 2 years ago 1.92GB
jenkins/jenkins <none> 7e250da768ed 2 years ago 619MB
- Docker Image 삭제
$ docker rmi <IMAGE ID>
Untagged: gitlab/gitlab-ce:12.9.2-ce.0
Untagged: gitlab/gitlab-ce@sha256:81c7b32ed9691a6615d97693ce4ffd49e9cfb53efcd9da958c74c0e0b28c8ae6
Deleted: sha256:e6b464b98affa1eacc821769ae2c1c5f43953bd269b889638aaeb2a146530216
Deleted: sha256:32eb25c8b1dbfbaa64fe488918cbdbb5e1fe1c65634fcdf441c5556e624ebd5c
Deleted: sha256:f417ef99a4613b7f69841df4816125ada8b20f7a4954ebef55a718b1ce166dc8
Deleted: sha256:d68fa0c783f46d12ec44cd102061f0bca2616e5ed3d81059b9607bba9075c7fe
Deleted: sha256:18d680b32d97f3d1c947774ac6c65949e9629d61c886c7c4b64a79bead987a49
Deleted: sha256:5004484b0eea365d8e185f40252aad356b010b47ab4b0358b548b76126735c4d
Deleted: sha256:ddb7327505f35b023af41acec4455076d118e3463b8c627de310bc694cdafb14
Deleted: sha256:b4d3af941054c99b15c27b809f4115ddc94c307aa97705c53c52b1b687298ba5
Deleted: sha256:36fb0d2dd04845e4d517cdb206bc16303172273150b8a74387ebc24157fc5bc6
Deleted: sha256:7c66d02ec02b23556302d9826e1966a6c94b775ec87bc5779acf26b0365ed2fb
Deleted: sha256:9e6f810a2aabaa90d8e79f52847c74617a94e78fe223f4f067d84a6bd63b9393
728x90
'Tool > Docker' 카테고리의 다른 글
[CentOS7] Docker pull image proxy 설정 (0) | 2022.07.11 |
---|
댓글