Skip to content
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 for bind mounts? #163

Closed
keirlawson opened this issue Apr 25, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@keirlawson
Copy link
Contributor

commented Apr 25, 2019

So far as I can see Shiplift does not support bind mounts (https://docs.docker.com/storage/bind-mounts/) only named volumes, is this the case? Would it be possible to add bind mounts support if it is missing?

@schrieveslaach

This comment has been minimized.

Copy link
Contributor

commented Apr 26, 2019

I think that you can just use the path to file/directory you want to mount:

docker
    .containers()
    .create(&ContainerOptions::builder(image.as_ref()).volumes(vec!["/path/to/file:/path/in/container"]).build())
@keirlawson

This comment has been minimized.

Copy link
Contributor Author

commented Apr 26, 2019

Ah yep confirmed you can, had assumed that option was for named volumes, will open a PR to add some clarificatory documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.