You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a problem with your docker compose. Here is the error that comes out when I start:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/tiberio/docker/unbound/forward-records.conf" to rootfs at "/opt/unbound/etc/unbound/forward-records.conf": mount /home/tiberio/docker/unbound/forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf (via /proc/self/fd/6), flags: 0x5001: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
The text was updated successfully, but these errors were encountered:
The error says what you did wrong. You probably do not have this file: $DOCKERDIR/unbound/forward-records.conf if you don't have it, there is nothing that can be mapped into the container.
The mapping is handy if you want to know how Unbound is configured and use it to select the upstream DNS servers of your preference.
But you have to create it (or get the default file from the maintainer GitHub account as starting point). If not, just use the default by removing the volume mapping in your Compose file.
I will remove the volume mapping from my docker compose example to prevent confusion.
Please always check the actual image/container documentation when you have questions.
Hi, I have a problem with your docker compose. Here is the error that comes out when I start:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/tiberio/docker/unbound/forward-records.conf" to rootfs at "/opt/unbound/etc/unbound/forward-records.conf": mount /home/tiberio/docker/unbound/forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf (via /proc/self/fd/6), flags: 0x5001: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
The text was updated successfully, but these errors were encountered: