ํฐ์คํ ๋ฆฌ ๋ทฐ
docker image๋ฅผ buildํ๋๋ build์ ์คํจํ๋๋ฐ ์์ธ์ no space left on device ๊ณต๊ฐ์ด ์์ด์์ด๋ค. docker system df -v๋ก ํ์ธํด๋ณด๋ ์์ฒญ๋๊ฒ ๋ง์ cache๊ฐ ์์ฌ์์๋ค. docker๋ layer๋ฅผ ์์ ๋ cache๋ฅผ ์ด์ฉํด ์ด๋ฏธ์ง ๋น๋์ ์ปจํ ์ด๋ ์์ฑ ์๊ฐ์ ์ค์ด๊ธฐ ๋๋ฌธ์ด๋ค.
$docker system df -v
Images space usage:
REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
snapshot latest 35grewd50504 12 days ago 14.97GB 0B 14.97GB 0
latest latest efdkd936hd3c 2 weeks ago 29.59GB 0B 29.59GB 0
Containers space usage:
CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS NAMES
Local Volumes space usage:
VOLUME NAME LINKS SIZE
Build cache usage: 14.63GB
๋ฐ๋ผ์ cache๋ฅผ ์ ๊ฑฐํด ์ฉ๋์ ํ๋ณดํ๋ ค ํ๋ค.
cache ์ญ์ ๋ช ๋ น์ด๋ ์๋์ฒ๋ผ ํ๋ฉด ๋๋ค.
sudo docker system prune -a
๊ทธ๋ฌ๋ฉด ์๋์ฒ๋ผ password๋ฅผ ์ ๋ ฅํ๋ผ๊ณ ํ๋ค. ์ ๋ ฅํ๋ฉด cache๋ฅผ ์ญ์ ํ๋ค.
๋งจ ๋ง์ง๋ง ๋ผ์ธ์ ์ ๊ฑฐ๋ cache์ ์ ์ฒด ์ฉ๋์ ํ์ธํ ์ ์๋ค.
Password:
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 Images:
Deleted build cache objects:
Total reclaimed space: 41.62GB
41GB๋ ๋๋ค…์ผ๋ง๋ ์ ๋ฆฌ๋ฅผ ์ํ๊ฑด์ง..๐คญ
'๐ป Dev' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๐จ Apache ๊ธฐ๋ฐ Airflow ๊ธฐ๋ณธ๊ธฐ ๋ค์ง๊ธฐ (0) | 2024.05.23 |
---|---|
๐ฅ๏ธ [์ปดํจํฐ๊ตฌ์กฐ์ ์ด์์ฒด์ ] ์ปดํจํฐ ๋ถํ, ๋ฐ์ดํฐ, ๋ช ๋ น์ด (0) | 2024.05.06 |
๐โโ๏ธ [python] ray๋ก ์นผํด๋ฅผ ํด๋ณด์ (0) | 2024.05.02 |
๐ [python] jpeg๋ก ์ธ์ฝ๋ฉํ๋ฉด ์ด๋ฏธ์ง๊ฐ ๋ณํ๋ค? (0) | 2024.05.02 |
๐ผ [python] pandas dataframe์ ๊ฑฐ์ ๋ชจ๋ ๊ฒ (1) | 2024.05.02 |
TAG
- linux
- ๋จธ์ ๋ฌ๋ ์ด๋ก
- ๊ธ๋
- ํ๊ณ
- ๋ ํ๊ฐ
- ๋ฒ ์ด์ฆ ์ ๋ฆฌ
- tmux
- Generative Model
- ๊ฐ๋ฐ์
- Computer Vision
- GIT
- python
- Multiprocessing
- vscode
- ์ฑ ๋ฆฌ๋ทฐ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Total
- Today
- Yesterday