Y
Hacker News
new
|
ask
|
show
|
jobs
by
dnt404-1
3999 days ago
Thank you for clearing that up. So, does this work like Vagrant's mount folders? Does the container then find the path to the host's development artifacts?
1 comments
nahiluhmot
3999 days ago
You have to manually specify the folders you want shared in the arguments to the command. For example, running this:
docker run -v /tmp/:/host-tmp/ ubuntu:14.04 bash -lc "echo 'TEST123' > /host-tmp/test"
Should create a file on your host's filesystem called "/tmp/test" with the text "TEST123".
link