인프런 커뮤니티 질문&답변
섹션 8 에서 도커 컴포스파일 작성해보기 에서 에러
작성
·
564
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 관련 파일도 새롭게 만들어지지 않았습니다
어떻게 해결하면 좋을까요..?
퀴즈
애플리케이션 개발에서 데이터베이스 같은 영구 저장소가 필요한 주된 이유가 무엇일까요?
서버 성능 향상
RAM 용량 제한 극복
서버 재시작 후에도 데이터 유지
코드 실행 속도 가속
답변 2
1
0





