grocy / grocy-docker

ERP beyond your fridge - now containerized - this is the docker repo of https://github.com/grocy/grocy
MIT License
418 stars 120 forks source link

Error running docker-compose pull GROCY_IMAG_TAG variable is not set #159

Closed fhold closed 2 years ago

fhold commented 2 years ago

trying to install the container via the quick start guide I get the following error after the command:

sudo docker-compose pull

WARNING: The GROCY_IMAGE_TAG variable is not set. Defaulting to a blank string.

What am I doing wrong?

jayaddison commented 2 years ago

@fhold hmm.. I'm uncertain what went wrong there - could you try running env | grep -w GROCY_IMAGE_TAG to inspect what the value of the environment variable is (if set)?

fhold commented 2 years ago

@jayaddison thanks for responding! the output is the following GROCY_IMAGE_TAG=v3.1.3-1 FYI I run the docker-compose pull command as sudo.

jayaddison commented 2 years ago

@fhold ah, ok! I think you should be able to run docker-compose without sudo, that may explain the problem. Running sudo, I think, was in your case leading to the creation of a separate sub-shell that did not have the environment variable set.

fhold commented 2 years ago

mhh that will bring me other errors :-( . Any other idea how I can use the script with sudo, can I hardset the variable?

fhold commented 2 years ago

issue can be closed - i used the install of linuxserver.io and that worked for me. Anyway thanks for helping out!