-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Support relative paths (with -v/--volume and -w/--workdir) #15526
Comments
Hi! Please read this important information about creating issues. If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
Relative to what? |
On the host side? Relative to the current working directory. |
Using the current working directory is impossible. The docker client doesn't necessarily reside on the same host as the docker daemon. |
I don't know that I agree with your pessimism. The client can convert the host side path to absolute paths before passing them through. I'm assuming you are referring to the boot2docker case. |
No it can't. |
Again, assuming you are referring to boot2docker. It actually mirrors your paths into the VM. So, there will be |
I'm not referring to boot2docker. |
Docker-compose currently does just this, but relative to the docker-compose.yml file. For docker, the general way to handle this, is However, @phemmer is right that the file system on the host you're running the client on can have a completely different directory layout then the host the daemon runs on. For this reason, Docker will not assume anything (think, for example, of cases where the docker daemon runs somewhere in the cloud) Boot2Docker is targeted at local development and shares the I understand your use case, and this would make it more convenient to work with when using Boot2Docker, but I think it should be closed for the above reasons. So, I'm -1, but there may be others that think different |
Closing because this is just not really possible. |
It would be nice, particularly on the host side, if relative paths could be used here. Supporting this might be as simple as converting them to absolute paths once the arguments are parsed before continuing. On the container side, if there is a way to inspect the current workdir, this would, ideally, be simple, as well.
The text was updated successfully, but these errors were encountered: