#docker #kubernetes #container #orchestrator #microservice #infrastructure-as-code #devops #ci #cd

제목[Q&A] Docker-compose에서 yaml file을 찾을 수 없다고 뜨는 경우2019-12-12 11:13
작성자

docker pull 'image' 명령을 통해 image를 pulling한 후 docker-compose build 명령을 통해 응용 프로그램을 실행하려고 하니 다음과 같은 에러가 떴다.

Can't find a suitable configuration file in this directory or any parent. Are you in the right directory?

이는 docker-compose.yml 파일의 위치가 사용할 수 없는 곳에 있다는 것이다. 즉, docker-compose.yml file을 같은 directory에 위치시켜야 한다. 

docker-compose.yml file을 현재 directory에 넣거나 -f를 통해파일 경로를 지정해야 한다.

이와 관련된 설명은 밑의 링크에서 더 자세하게 알아볼 수 있다.

https://docs.docker.com/compose/reference/overview/ 

댓글