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