Howto Dataset -> portainer/dockge -> random container?

Hi,

spent a while trying to get this to run but can’t seem to wrap my head around this.

I want to mount a Host dataset in a container which is managed by dockge or portainer.

The first step is simple, I add a Host path and that is mounted on the dockge/portainer container.

I see the mount, I see the data, I can write to it from docke/portainer (well only dockge technically since portainer does not have a shell).

(dataset in dockge container)

(dataset on host)

But how do I pass it on from there?

I tried simply adding it as a volume


 volumes:
      - /etc/localtime:/etc/localtime:ro
      - /mnt/portmnt_testds:/mnt/clientmnt_testds:rw

but while that creates the appropriate path inside the client container it does not map the path I want

I also tried named volumes in portainer, and several other variations, spent half a day trying all of ChatGPTs ideas, no luck.

I read a lot about potential permission issues, but this would have to be between dockge and the client container, and even then I’d still expect to at least get a read access.

Any of you docker whiz’s figured this out?

Thanks:)