Just to elaborate because I’ve been searching for hours and Jochen’s post allowed me to figure out how to move recordings and pictures off the docker server.
You can put entries in /etc/fstab that allow you to permanently bind a directory to another directory. For example this entry causes a USB hard drive that is plugged into my Debian box to be mounted at /usb/Woodstock
UUID=a7ef98ad-3318-37f9-96eb-baa1c0415aa8 /usb/Woodstock hfsplus force,rw,nosuid,nodev,relatime,umask=22,uid=1000,gid=1000,nls=utf8,uhelper=udisks2
I already understood this and am using it for several other things - but just didn’t think it through. Kept trying the symbolic link route which will not work.
In my case, I actually want to put the media on a folder that is on ANOTHER computer (a headless Mac Mini). So - I can use an FSTAB entry using FUSE to not only map one directory to another, I can make the connection using SSHFS (this complicates things and is not needed for most people - but I am sharing my FSTAB entry anyway in case someone else is trying to do this exactly. Note this involves a lot more than just creating an FSTAB entry and is beyond the scope of this post.):
sshfs#[email protected]:/Volumes/Linus-2TB-X/motioneye /usr/share/hassio/share/motioneye fuse defaults,idmap=user,nonempty,allow_other,reconnect,_netdev,users,IdentityFile=/root/.ssh/id_rsa 0 0
So if instead of using another computer I wanted to just put my media on the USB drive that is attached directly to my Debian server (my first example) the entry would look like:
/usb/Woodstock/motioneye /usr/share/hassio/share/motioneye none bind 0 0
(and it would need to come after my first entry that creates the Woodstock directory in the first place)
You can test this without modifying your FSTAB with:
mount --bind /usb/Woodstock/motioneye /usr/share/hassio/share/motioneye
Note that an empty directory called motioneye will need to be in both places. If they aren’t empty, both commands will throw an error.
(I am running HomeAssistant Supervised in Docker on a vanilla Debian Buster 64bit. I have several other non Hassio/Homeassistant Docker containers running on this same machine. The other way this could probably be done is to write a custom script by modifying the installer from the GIT pull for Motioneye - but then it will not stick of the author upgrades or you reinstall for some reason. Using Bind to redirect the files seems like the best option for me.)
Once you do this - Motioneye even reports space available at the REAL destination instead of the docker container: