However, I’m getting the following error when I try to bring it up:
Starting docker_caddy_1 … error
ERROR: for docker_caddy_1 Cannot start service caddy: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting “/home/mike/docker/Caddyfile” to rootfs at “/var/lib/docker/overlay2/50cb6e19f82e192e267a233157d14da3002ef1e22aec04a9f08e904eeb77cddf/merged/etc/caddy/Caddyfile” caused: 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
ERROR: for caddy Cannot start service caddy: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting “/home/mike/docker/Caddyfile” to rootfs at “/var/lib/docker/overlay2/50cb6e19f82e192e267a233157d14da3002ef1e22aec04a9f08e904eeb77cddf/merged/etc/caddy/Caddyfile” caused: 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
ERROR: Encountered errors while bringing up the project.
Did you create a file at $PWD/Caddyfile before running it? You need to have your Caddyfile ready on the host machine first. Docker can’t create a mount for a file that doesn’t exist.
Next time, please fill out the help topic template. It’s important to save time to help you.
Thanks for the insanely fast response! No, I did not create a caddy file. I haven’t gotten that far. This is just a simple reverse proxy with two hosts.
I appreciate that Francis. I did not see in that link, an example of a reverse proxy caddyfile, for which I am trying to configure. Is there another link?
mike@ubuntumedia:~/docker$ docker-compose up -d
Removing docker_caddy_1
ombi is up-to-date
jellyfin is up-to-date
Recreating 6fd78d80eaa9_docker_caddy_1 …
sabnzbd is up-to-date
radarr is up-to-date
Recreating 6fd78d80eaa9_docker_caddy_1 … error
ERROR: for 6fd78d80eaa9_docker_caddy_1 Cannot start service caddy: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting “/home/mike/caddy/Caddyfile” to rootfs at “/var/lib/docker/overlay2/d8522d415da5be1141fb02b77792bfa113f28aec05c63adc2b1e1730f1bd37f2/merged/etc/caddy/Caddyfile” caused: 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
ERROR: for caddy Cannot start service caddy: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting “/home/mike/caddy/Caddyfile” to rootfs at “/var/lib/docker/overlay2/d8522d415da5be1141fb02b77792bfa113f28aec05c63adc2b1e1730f1bd37f2/merged/etc/caddy/Caddyfile” caused: 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
ERROR: Encountered errors while bringing up the project.
I’m not sure where to go from here. Do you want to see my pastes from the firewall rules?
Ty, and I just fixed that, so now the container loads properly. I’m not getting any reverse proxying though. Did you see anything incorrect with my Caddyfile syntax? I’m trying to forward ombi.digitalwashu.net to 192.168.1.10:3579.
I’m thinking possibly I’m having firewall issues if you think the Caddyfile looks good.
I’m really sorry I didn’t follow the help template. I realize this has cost you time. I will make sure to get the technical answers youre looking for. sorry again.