-
-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker_image does not support running from a directory #816
Comments
Sorry, I should clarify. It supports "run from this directory" if the file you want to build from is called "Dockerfile". It doesn't support the use case I had, which was "run from this directory, but use this differently named file as the Dockerfile" (because I actually had two different Dockerfile's I wanted to run that were both in that directory). I solved this in my case by splitting everything up into separate folders and renaming the files to Dockerfile, but that won't fix everyone's situations. |
I'm trying to figure out what support for this would look like.... First thing would be the interface... I image we'd need a property on Then somehow tweak this function: It really boils down to if the underlying docker-api rubygem supports doing this. -s |
The underlying API definitely supports it. One of the examples from docker-api is |
Dockerfile ADD commands are often relative to a directory, but the
docker_image
command doesn't support any sort of "run from this directory" command. You can work around this by choosing a directory instead and this works for most situations, but it would be a useful addition.The text was updated successfully, but these errors were encountered: