/container/mounts/add name=blocky_config src=disk1/containers/blocky001/config.yml dst=/app/
/container add hostname=blocky001 interface=veth1 logging=yes mounts=blocky_config root-dir=disk1/containers/blocky remote-image=spx01/blocky:latest
This should show the config file at /app inside the container but all i can find in the log is that the it cant find it.
From my (very limited) experience, the mounts point to directories on your RoS filesystem. The contents of those directories are not seen.
For example:
[admin@MYROSDEVICE] /container/mounts> print
0 name="pihole-etc" src="/disk3/docker/pihole/mount/etc" dst="/etc/pihole"
1 name="pihole-etc-dnsmasq.d" src="/disk3/docker/pihole/mount/etc-dnsmasq.d" dst="/etc/dnsmasq.d"
[admin@MYROSDEVICE] /file> print
Columns: NAME, TYPE, SIZE, CREATION-TIME
# NAME TYPE SIZE CREATION-TIME
1 disk3/docker directory jun/29/2022 15:20:47
2 disk3/docker/pihole directory jun/29/2022 15:20:47
3 disk3/docker/pihole/root container store jun/29/2022 15:22:17
Even though the mounts point to directories, not individual files, and you don't see the full target directory, the configuration files for pihole and dnsmasq.d are being persisted across start/stop of the container.