공공연히 개발하기 🧑💻/Back-end
[Docker] docker-compose.yaml 빌드할 때 이런 warning 보신 분?
공공연히
2024. 10. 6. 20:12
도커 컴포즈로 빌드할 때 이런 경고 문구 보신 분?
WARN[0000] /Users/username/dirname/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
그게 바로 접니다 ✋
▶️ 원인은 단순!
Docker Compose V2에서는 version
속성이 더 이상 필요하지 않기 때문입니다.
경고 문구에도 나와있듯 version
속성은 무시됩니다.
version: '3.8'
services:
web:
...
✅ 해결도 단순!
docker-compose.yaml 파일에서 version
속성 제거하면 끝!
services:
web:
...
에러, 워닝에 괜히 쫄지 않기! ⭐️