4 ms·
Equally confusing and often misunderstood is that the latest version of a compose file should not have a version field at all! It is a blend of v2, v3 and any
by Too 4y ago
Equally confusing and often misunderstood is that the latest version of a compose file should not have a version field at all!
It is a blend of v2, v3 and any newly added attributes (v3 some times supported less than v2), that is now called the compose spec.
Implementations are supposed to do feature detection based on what attributes are used in the file. Make sure your docker compose is new enough, otherwise it thinks absence of version field means v1!
- throwawaaarrgh 4y agoYeah I was gonna complain about this but honestly I don't even know what the hell they're doing with the version field anymore. I suspect it's because they want to force you to upgrade because otherwise they may have to support legacy longer.