Docker Community Forums

Share and learn in the Docker community.

ENV instruction issue in Dockerfile

(Sachin Sagar Rai) #1

I’ve added ENV PATH=$PATH:/opt/rubies/ruby2.1/bin in my Dockerfile.
When I build image and run it and nsenter it, that PATH is not appended when I do echo $PATH.
But the process that runs does get that PATH.
It was not the issue in docker 1.2.
Its happening after upgrading to 1.3.
What might be the issue?

(Sven Dowideit) #2

I think this might be related to

though instead of using nsenter, you can now use docker exec