When I run docker compose up -d I get the following error:
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 "/root/n8n-docker-caddy/caddy_config/Caddyfile" to rootfs at "/etc/caddy/Caddyfile": mount /root/n8n-docker-caddy/caddy_config/Caddyfile:/etc/caddy/Caddyfile (via /proc/self/fd/6), flags: 0x5000: 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
I tried the following topic to solve my problem, but I think this is not the same issue:
I am a newbie to Docker… but in the end I just followed the tutorials. At the moment I am logged in as root, so I don’t think privileges might be a problem.
I am not a digital ocean user and don’t know about the specifics of their landscape.
Seeing the error message suggests
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
Can you confirm whether /root/n8n-docker-caddy/caddy_config/Caddyfile exists in your digital ocean droplet and is indeed a file? You could for example run cat /root/n8n-docker-caddy/caddy_config/Caddyfile to see the file content.