Closed azzamsa closed 4 months ago
What is the reason for removing the version? Doesn't that make it go back to the old pre-2.0 version of the compose format?
What is the reason for removing the version? Doesn't that make it go back to the old pre-2.0 version of the compose format?
version
is obsolete now. docker compose up
throws a warning if it is used.
Technically you can still define it… But you will get the warning you observed, and it won’t be used, as docker compose v2 (=the cli plugin) will always use the latest version of the compose file schema. -- Metin Y.Leader
From Docker-compose.yml: version
is obsolete - Docker Hub - Docker Community Forums
I have read the CLA Document and I hereby sign the CLA