Local folder in UmbrelOS

Hi guys,

I run UmbrelOS in Docker container on Ubuntu machine. I have folder on this machine which want to have in UmbrelOS to read and manage from any my local machines. I found and read doc, related to mount external drive to the UmbrelOS, but I don’t want to format it and it’s not actually external drive. Do we have any ways to mount local folder? Is it possible to have easy mount folders from the docker’s volumes? Please share link if this topic was already discussed, I didn’t find something related to the local folder, but not external device mounting.

Well there is two ways, one, you would use Samba server on the the Ubuntu machine, then mount it in the docker container with sanba client after creating a mount point in the container or execute mounting the mount point directory inside the container at startup.

So the Ubuntu Samba server would have something like this in its config:

[Music]
path=/dev/sdb1
browsable=yes
writeable=yes
guest ok=yes

Then in the docker container (umbrel) you would install cifs-utils

sudo apt install cifs-utils

then run the mount command after creating a mount point in the docker container:

mount -t cifs //Ubuntlu_ip/Music  /my_umbrel_mount_dir  -o username=samba_username,password=samba_password

The other way is to mount it like a partition at the start of the docker instance like this:

docker run -it --name umbrel --mount type=bind,source=/devt/sdb1,target=/my_umbrel_mount_dir ubuntu:latest 

but either way, /my_umbrel_mount_dir inside the docker container must be an empty directory, owned by root, but accessible to all including programs (chmod 777)