balena-os / balena-supervisor

Balena Supervisor: balena's agent on devices.
https://balena.io
Other
148 stars 63 forks source link

Allowing bind-mounts for "relative paths" in a limited directory scope that the supervisor controls and can purge #643

Open shaunmulligan opened 6 years ago

shaunmulligan commented 6 years ago

In some cases, it is useful for users to define bind-mounts in their docker compose, for example in the case where one would have an additional partition or usb drive that they need to bind-mount into a service at runtime.

The proposal would be to allow users to define relative paths , something like:

volumes:
     - "./my-data:/opt/my-data"

this would be mapped to somewhere like /mnt/data/user-data which the supervisor could then delete when the user requests a "purge data"

We would not allow bind-mounts to absolute paths or to parts of the root sys.

Front logo Front conversations

Front logo Front conversations

lekkas commented 6 years ago

Fixes https://github.com/resin-io/hq/issues/1288

lekkas commented 6 years ago

This looks like a fairly common request in both paid support and the forums - some threads I just bumped into:

balena-ci commented 4 years ago

[dt-rush] This issue has attached support thread https://jel.ly.fish/#/support-thread~067ccb9e-82b0-4e11-a225-eef4964ac8d7

jellyfish-bot commented 3 years ago

[ntzovanis] This issue has attached support thread https://jel.ly.fish/9d8fea5c-0a7d-4a59-941e-2a9fa40caa33