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
Ignores .dockerignore file #2098
Comments
I think the issue is that you are doing a volume mount that overlays the stuff added from context. If you take out that "volume" line, it should do what you want. |
You are totally right. I guess what that means is that the "volume" command ignores the |
I think if you start thinking about all the different contexts in which a docker image could be used (on a different machine, for example -- think of stock images like "ubuntu"), and all the different possibilities for volume mounts, it wouldn't really make much sense for |
OK, that makes sense. The whole reason I need it is because of the much discussed issues with ssh-forward, and the less discussed issues with caching a build (for example during |
I thought about this a bit more. I don't think the issue with stock images is a real one, in the sense that you would never have the "ubuntu" Whenever you are mounting a volume, if at that moment you would also like to have a Hope this makes sense. I should probably reopen this as a feature request. |
I may not fully understand everything you are saying, but container building and container running are two really separate things, so if your issue is that you want more flexibility around what parts of a directory tree get mounted in a container with volume mounts, it is likely to be confusing to talk about that in terms of |
A few thoughts (trying to get clear in my mind, and thanks for taking the time to talk all this through!):
But you are absolutely right, the ssh-forwarding and caching are the major issues here. |
We should probably close this issue. |
Note that support for |
Agree, a |
@dnephin Are there any plans for adding |
+1 for .volumeignore |
Hopefully docker would implement this feature so docker-compose could have it in compose file )) |
Are there any updates of .volumeignore? |
Here is a simple test case to illustrate the problem. This was verified to work correctly in
docker
in this issue: moby/moby#14308.Expected output for the
find
command is:The text was updated successfully, but these errors were encountered: