How to "mount" a single file from the host into an existing directory in the container #26735
-
To configure a running Firebird database in a docker container (https://hub.docker.com/r/firebirdsql/firebird) it would be necessary to mount a file from the host system into a specific directory in the container (see FirebirdSQL/firebird-docker#8). A bind mount ( Using a glob mount, with a single file for the
results in the error
Using a wildcard
results in all files in Using a wildcard in the destination part:
Results in a file named Adding So my question is: is it possible to mount this single file into the container, overwriting the default file? I am am very new to podman (or containers in general) so it might be possible that I am missing something obvious. I am using Fedora (KDE) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Why do you think that? That is not true bind mounts can be files or directories. |
Beta Was this translation helpful? Give feedback.
-
Hmm, when I use
then Podman seems to replace the entire contents of the Which is similar to the behaviour when mapping a directory containing that config file into
In both cases Firebird doesn't find the files it expects in And that let me to the conclusion I can't map a single file. So apparently I did something wrong with that mound option. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed answer. So that failed again for me using my command. After removing other options one by one, it seems this doesn't work together with setting environment variables. For completeness, this works:
but this doesn't
I will take this to the maintainer of the container. Thanks for your help and patience |
Beta Was this translation helpful? Give feedback.
signle file mount works just fine a…