0

I made an application and I need to test it on our lab. My colleague has done a docker-compose.yml file but nobody is at office today and I'm lost with a line in this file:

image: gitlab-${DOCKERADM_ENV}:5005/rims/mgmt-docker-gui:lab

Because when I do docker-compose -f docker-compose-mgmt.yml pull I have an error DOCKERADM_ENV is not set.

I want to set this variable but how can I do that ?

2
  • You have to set the variable I your environment before running it. Try export DOCKERADM_ENV=foo. Commented Mar 8, 2017 at 12:04
  • It would work too but @Lauri were faster, thank you for your help ! Commented Mar 8, 2017 at 12:08

2 Answers 2

1

It's read from environment variables, so you can use: DOCKERADM_ENV=<value> docker-compose -f docker-compose-mgmt.yml pull

Sign up to request clarification or add additional context in comments.

Comments

0

Try setting environment variable

For windows ,

SET DOCKERADM_ENV=boo

For OS X or Linux:

export DOCKERADM_ENV=boo

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.