When using Docker Cloud Building tools, if you set environment variables, they are not being set when building the image.
I have tried so many different variations of docker files.For example.
ARG MY_ARG=DefaultValue
ENV MY_ENV=$MY_ARG
Program will echo DefaultValue if i have a key in Docker Cloud called MY_ARG with value test
ENV MY_ENV=DefaultValue
Program will echo DefaultValue if i have a key in Docker Cloud called MY_ENV with value test
I have tried all the variations here. Seems it just doesn’t work at all.
Would be really nice if someone from Docker would answer if this is an actual bug…