Windows Docker: WSL 파일로 Disk 압박된 건
소개
Widnows10에서 Docker 빌드를 여러 번 하면 Disk는 100%가 되어 버리는 현상이 있었습니다.
WSL의 ext4.vhdx 파일은 100GB 이상을 차지하고 있다는 것을 알았습니다.
상황
WSL로 디스크 압박

문제는 WSL 2 based engine이면 Disk 해제되지 않는 것 같습니다.
해결 방법
WSL 2 based engine 제거(Hyper-v backend 사용)
지금은 다음 WSL을 제거하고 "Apply & Restart"를 클릭하여 다시 시작하십시오.

ext4.vhdx 지우기
wsl --shutdown
wsl --list --verbose

삭제:
wsl --unregister docker-desktop-data
wsl --unregister docker-desktop
Docker Desktop의 Clean 기능 사용


이상
Reference
이 문제에 관하여(Windows Docker: WSL 파일로 Disk 압박된 건), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/chenglin/items/071f340e78f70498b273
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
WSL로 디스크 압박

문제는 WSL 2 based engine이면 Disk 해제되지 않는 것 같습니다.
해결 방법
WSL 2 based engine 제거(Hyper-v backend 사용)
지금은 다음 WSL을 제거하고 "Apply & Restart"를 클릭하여 다시 시작하십시오.

ext4.vhdx 지우기
wsl --shutdown
wsl --list --verbose

삭제:
wsl --unregister docker-desktop-data
wsl --unregister docker-desktop
Docker Desktop의 Clean 기능 사용


이상
Reference
이 문제에 관하여(Windows Docker: WSL 파일로 Disk 압박된 건), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/chenglin/items/071f340e78f70498b273
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)


이상
Reference
이 문제에 관하여(Windows Docker: WSL 파일로 Disk 압박된 건), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/chenglin/items/071f340e78f70498b273텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)