Uh oh!
There was an error while loading. Please reload this page.
Support for relative path in bind mounts - #1273
Conversation
Signed-off-by: Matthew Wo <9029537@gmail.com>
GordonTheTurtle
commented
Aug 5, 2018
Please sign your commits following these rules: $ git clone -b "1203-relative-bind-mounts" git@github.com:prankymat/cli.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354231528editor openschange each 'pick' to 'edit'save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
Signed-off-by: Matthew Wo <9029537@gmail.com>
de2ae19 to
026fef4Comparedice14u
commented
Aug 31, 2018
--- FAIL: TestParseWithVolumes (0.00s) |
Uh oh!
There was an error while loading. Please reload this page.
9b3410b to
0e347a2Compareianfrantz
commented
Nov 17, 2019
Hi folks, I'm still having trouble getting this to work on Windows 10. My solution: $wd = Get-Location |
Stadly
commented
May 3, 2020
Any news on this? Would be great! |
santalucial
commented
May 8, 2020
most anticipated feature of 2020 |
c-goes
commented
Oct 7, 2020
Podman has this feature. Please do it also in Docker CLI. |
svdHero
commented
Nov 13, 2020
Any update? This would be such a great feature. |
matthewwo
commented
Mar 14, 2022
Seems addressed by #3469 |
Signed-off-by: Matthew Wo 9029537@gmail.com
- What I did
Add support for resolving relative paths in bind mounts as discussed in #1203.
For example:
will mount the folder
datain the current working directory.- How I did it
Made changes in the parser (
opts.go) to resolve the relative path but only if the volume is a bind mount.- How to verify it
docker run -v ./hello:/hello-folder alpine sh -c "touch /hello-folder/test"the folder
helloin the current working directory of the host machine should have the filetest.- Description for the changelog
Resolves relative path in
docker runbind mounts.- A picture of a cute animal (not mandatory but encouraged)

Zot Zot Zot (as an UCI alumni).