docker-compose up 실행시 아래와 같은 에러가 발생하여 삽질을 하였다.
ERROR: The Compose file './docker-compose.yml' is invalid because: Invalid top-level property "manager". Valid top-level sections for this Compose file are: version, services, networks, volumes, secrets, configs, and extensions starting with "x-". You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ |
설명처럼 version 을 소수점으로 변경도 해보고, 이런 저런 별짓을 다해봤지만 ...
결론은 띄어쓰기 문제였다.
yaml 파일에서 같은 레벨의 띄어쓰기가 맞지않아서 에러가 나는 거였음...
위 에러날때 동급의 항목이 같은 띄어쓰기로 되어 있는지 , 더 앞칸으로 되어 있는건 아닌지 확인해 보면 해결될듯함
'DevOps' 카테고리의 다른 글
centos 7 virtualbox guest additions 해결및 공유폴더설정완료 (0) | 2019.08.26 |
---|---|
Devops roadmap (0) | 2019.06.25 |
docker - swarm/compose/service/stack (0) | 2019.06.07 |
Docker Error (0) | 2019.06.05 |
Docker 명령어 정리 (2) | 2019.03.21 |