admin管理员组

文章数量:1287833

Running Podman 5.2.2 with rootless containers.

Trying to mount a file inside of named volume.

I have an existing named volume "certbot-pvc" with a file in it at /live/some.example.tld/fullchain.pem that I need to mount to a file in another container, located at /etc/passbolt/certs/cert.pem

  • I know we can bind mount to .path/on/host:/path/in/container, but I need to mount the file within a named volume. I have a certbot container that pulls the trusted certs and saves them to this volume. I can also mount the volume with "-v certbot-pvc:/path/in/container" - but this adds the path within the volume -> /live/some.example.tld/path/in/container - not to the desired path of /etc/passbolt/certs/fullchain.pem. Is this possible?

Usually the path in the named volume lines up with most web apps in other containers but passbolt's default config is looking in /etc/passbolt/certs to pickup the cert files. Thank you

本文标签: Can we bind mount a file within a named volume in PodmanStack Overflow