I feel I should understand this, but I’m not seeing it.
I have an application installed on a device. There is another (internal) storage unit /dev/sda1 that I want to mount and access from a container. This is external data that I need to be able to read and write.
I’m unclear on whether (and how) I should be referencing this other storage unit in the docker_compose.yml, or should I just be putting a mount command into a script which is run when the container is started (and if did that, how would I be sure to unmount the storage device)?
The documentation on named volumes seems to all be talking about resin-data, which is provided. I don’t see any instructions for creating my own named volumes (if that is what I need in this situation).
And I’m unclear what happens if I do a mount in a container and that container is stopped.
Any advice would be much appreciated!