netdisco-docker icon indicating copy to clipboard operation
netdisco-docker copied to clipboard

installation process broken

Open warnerseb opened this issue 2 months ago • 5 comments

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

warnerseb avatar Oct 28 '25 14:10 warnerseb

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.

ollyg avatar Oct 28 '25 15:10 ollyg

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.

ollyg avatar Oct 28 '25 17:10 ollyg

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

ollyg avatar Oct 28 '25 17:10 ollyg

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

warnerseb avatar Oct 29 '25 09:10 warnerseb

unfortunately cannot reproduce this locally; docker on macOS

% docker --version Docker version 28.2.2, build e6534b4eb7

ollyg avatar Oct 29 '25 21:10 ollyg

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.

ollyg avatar Nov 05 '25 11:11 ollyg

fixed in a87ad18

ollyg avatar Nov 05 '25 17:11 ollyg

Runs smooth now. nice pointer solution to common-env.

thx Oliver

warnerseb avatar Nov 06 '25 08:11 warnerseb

hurrah! 🎉 thank you so much for confirming @warnerseb :-)

ollyg avatar Nov 06 '25 09:11 ollyg