인프런 커뮤니티 질문&답변

JONGHEE KIM님의 프로필 이미지

작성한 질문수

[코드팩토리] [초급] NestJS REST API 백엔드 완전 정복 마스터 클래스 - NestJS Core

Docker Compose 파일 작성해보기

섹션 8 에서 도커 컴포스파일 작성해보기 에서 에러

23.10.23 20:50 작성

·

420

0

안녕하세요

docker-compose up

명령어를 입력했을 때 에러가 나왔습니다

에러 내용

joy@gimjonghuiui-MacBookAir CF_SNS % docker-compose up

Attaching to cf_sns-postgres-1

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 "/host_mnt/Users/joy/Documents/NestJs/CF_SNS/postgres-data" to rootfs at "/var/lib/postgresql/data": mount /host_mnt/Users/joy/Documents/NestJs/CF_SNS/postgres-data:/var/lib/postgresql/data (via /proc/self/fd/9), 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

 

위에 내용이 뜨면서 실행이 안되는것 같습니다

postgres-data 관련 파일도 새롭게 만들어지지 않았습니다

어떻게 해결하면 좋을까요..?

답변 2

1

코드팩토리님의 프로필 이미지
코드팩토리
지식공유자

2023. 10. 23. 20:52

안녕하세요!

경로관련 오류입니다.

입력하신 경로가 디렉터리가 아니라고 나오는데 확인 해보시고 못 찾으시겠으면 다시 댓글 부탁드립니다.

감사합니다!

0

JONGHEE KIM님의 프로필 이미지
JONGHEE KIM
질문자

2023. 10. 23. 20:59

아 제가 실수 했네요 감사합니다^^ 디렉터리가 아닌 그냥 파일로 만들었어요.ㅠㅠ 감사합니다