문서의 이전 판입니다!
docker compose 형태로 사용가능해졌다.$HOME/.docker/cli-plugins/docker-compose 로 다운로드한다.chmod +x $HOME/.docker/cli-plugins/docker-compose 로 실행 권한을 주면 이제 docker compose 명령으로 사용가능해진다.services 의 이름에 밑줄(_)이 있을 경우, 동일 docker-compose 내의 다른 컨테이너에서 해당 이름으로 네트워크 접속이 안됐다.Creating network "xxx_default" with the default driver ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
services:
myservice:
network_mode: bridge
.env 파일을 만들어서 KEY=VALUE 형태로 추가해주면 docker-compose 실행시 적용된다.--env-file=파일명 옵션을 준다.