반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
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
Archives
Today
Total
관리 메뉴

chargingport

“No Space Left On Device” In Docker 본문

NOTES/ETC

“No Space Left On Device” In Docker

chargingport 2024. 10. 21. 09:33
반응형

방법1) 리소스 삭제

docker system prune -a --volumes

WARNING! This will remove:
        - all stopped containers
        - all networks not used by at least one container
        - all anonymous volumes not used by at least one container
        - all images without at least one container associated to them
        - all build cache

 

 

방법2) Docker 루트 디렉토리 변경

# 기존 루트 디렉토리 확인
docker info -f '{{ .DockerRootDir }}'

 

# 기존 디렉토리와 신규 디렉토리 sync 맞추기
# rsync말고 다른거 써도됨
# sudo rsync -aP <기존> <신규>

sudo rsync -aP /var/lib/docker /data/docker-data

 

# 도커 daemon.json 수정
sudo vim /etc/docker/daemon.json

{
  "data-root": "/data/docker-data"
}

 

# 도커 데몬 재실행

sudo systemctl restart docker

 

# 변경된 위치 확인

docker info -f '{{ .DockerRootDir }}'
반응형

'NOTES > ETC' 카테고리의 다른 글

Ollama Modelfile 위치  (0) 2024.10.04
portainer docker nginx-proxy뒤에 실행하기  (0) 2023.09.21
nslookup 통해서 도메인 IP 주소 찾기  (0) 2023.09.18
VSCode SSH 저장 권한 오류  (0) 2023.09.15