Compose version
property is obsolete
#1066
Labels
good first issue
Good issue to tacke for first-time contributors
version
property is obsolete
#1066
Bug description
As mentioned here, docker-compose now warns of a deprecated property
How to reproduce
Run any tutor command that invokes docker-compose.
tutor local run lms bash
would work.Environment
Python 3.10.12
Compose v1.29.2 (should work with newer versions, too)
Recommended Fix
The
version
property of Compose .yml files is obsolete as of 1.27 and should be removed, as described in official compose spec):and again:
Tutor recommends
docker-compose>=2.0.0
, so we should be plenty safe to remove remove this property from all compose files. Furthermore, Tutor's DOCKER_COMPOSE_VERSION config setting is only used to set the obsoleteversion
property, and overriding that config version never would have been viable for end-users anyway, so I recommend removing the config setting too.The text was updated successfully, but these errors were encountered: