installation process broken
Hi all,
the new version of the docker-compose.yml file is not working.
tested on two different systems. even with a clear installed docker environment.
Always get this error during docker-compose up --detach .
ERROR: yaml.constructor.ConstructorError: could not determine a constructor for the tag '!reset' in "./docker-compose.yml", line 32, column 15
adding or changing profiles does not help.
Thx Sebastian
Hi! What version of docker do you have? I suspect this might be a feature of a newer version not recognised by yours? Please upgrade if you can and think this might help.
Hi @warnerseb another option if you can't upgrade is to edit the compose file. All the common_environment service does is provide a template so you can copy the environment variables into the environment section of the other services, and then delete common_environment and the profiles reset line.
this is the config reference but it doesn't say if there are old versions not supporting it https://docs.docker.com/reference/compose-file/merge/#reset-value
Hi! What version of docker do you have? I suspect this might be a feature of a newer version not recognised by yours? Please upgrade if you can and think this might help.
I've checked the version. I'm running 28.5.1 on both systems where installation is failing. on an old system, where netdisco is running I have docker 28.2.2 installed. the netdisco version there is 2.086001
unfortunately cannot reproduce this locally; docker on macOS
% docker --version Docker version 28.2.2, build e6534b4eb7
Hi again @warnerseb ! I realised that there's a much better way to achieve what the common_environment bit does, and the advantage is that it should work around the issue you have. I'll implement and release an updated compose file hopefully in a day or so.
fixed in a87ad18
Runs smooth now. nice pointer solution to common-env.
thx Oliver
hurrah! 🎉 thank you so much for confirming @warnerseb :-)