Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

x·2024년 1월 29일
0

docker

목록 보기
4/5

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "" to rootfs at "": mount : (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

volume 설정이 잘못 됐거나 file이 아닌 directory를 마운트하려는 경우 발생하는 에러

볼륨 제거하고 다시 컨테이너 실행해야 함

안쓰는 이미지 컨테이너 볼륨 전체 제거
docker system prune --volumes -a

또는

특정 볼륨 제거
docker rm -v <container_name>

0개의 댓글