강의

멘토링

커뮤니티

Inflearn Community Q&A

nietzsche21st4666's profile image
nietzsche21st4666

asked

[Code Factory] [Beginner] NestJS REST API Backend Complete Conquest Master Class - NestJS Core

Try writing a Docker Compose file

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

Written on

·

551

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 관련 파일도 새롭게 만들어지지 않았습니다

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

javascripttypescriptrest-apinestjsbackend

Answer 2

1

codefactory님의 프로필 이미지
codefactory
Instructor

안녕하세요!

경로관련 오류입니다.

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

감사합니다!

0

JONGHEE KIM님의 프로필 이미지
JONGHEE KIM
Questioner

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

nietzsche21st4666's profile image
nietzsche21st4666

asked

Ask a question