작성
·
568
1
nginx 실습 시
localhost:50000 으로 요청하면 작성한 index.html이 아닌 nginx 본 메인페이지가 뜨고
명령프롬프트 창에는 다음과 같이 나옵니다
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/Users/multicampus/docker_
답변 1
1
안녕하세요!
에러 메시지로 보아 파일을 디렉토리로 연결했거나, 디렉토리를 파일로 연결한 것으로 보입니다.
/Users/multicampus/docker_lab/wp/index.html 해당 위치에 파일이 정확하게 있는지 다시 확인해보시고 docker 실행명령어를 알려주시겠어요?
감사합니다!
안녕하세요.
로컬의 index.html 을 브라우저로 실행 시 주소 창에는
file:///C:/Users/multicampus/docker_lab/wp/index.html
이렇게 나오고,
명령어는 다음과 같습니다.
docker run -d --rm -p 50000:80 -v /Users/multicampus/docker_lab/wp/index.html:/usr/share/nginx/html/index.html nginx