1

Inside the docker file for jansendup/emdw-compile-dep I define the following variable:

ENV BIND_DIR /home/user/devel

Would it be possible to do something like this:

sudo docker run -v /home/ubuntu/devel:$BIND_DIR jansendup/emdw-compile-dep

instead of this:

sudo docker run -v /home/ubuntu/devel:/home/user/devel jansendup/emdw-compile-dep
1

No, the variable would get expanded locally (and would probably be empty).

Docker also only accept absolute paths inside the container so doing:

sudo docker run -v /home/ubuntu/devel:. jansendup/emdw-compile-dep

or

sudo docker run -v /home/ubuntu/devel:~ jansendup/emdw-compile-dep

also won't work.

If you have some specific usecase for the above, feel free to add that. Then it might be possible to provide a better solution.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.