Skip to content

Instantly share code, notes, and snippets.

@Krijger
Last active August 29, 2015 14:24
Show Gist options
  • Save Krijger/f395d86855398077a554 to your computer and use it in GitHub Desktop.
Save Krijger/f395d86855398077a554 to your computer and use it in GitHub Desktop.
volumes_issue
docker run -v /dir --name data debian:jessie bash -c "echo 'contents' > /dir/file && cat /dir/file"
docker run \
--volumes-from data \
-v /var/run/docker.sock:/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
debian:jessie \
bash -c "docker run -v /dir/file:/myfile debian:jessie cat /myfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment