With a basic Caddy setup, the render runtime is not permitting running caddy.
Error: exec /usr/bin/caddy: operation not permitted
Am I missing something?
render.yaml:
- name: my-caddy-service-name
type: web
plan: starter
env: docker
rootDir: my-caddy-service
dockerfilePath: ./Dockerfile
dockerContext: .
autoDeploy: false
Dockerfile:
FROM caddy:2
COPY Caddyfile /etc/caddy/Caddyfile
EXPOSE 80 443
CMD ["caddy", "run"]
Full deploy logs output:
#5 [internal] load build context
#5 transferring context: 478B done
#5 DONE 0.0s
#6 [1/2] FROM docker.io/library/caddy:2@sha256:9a8e0e6f0f0af954626903b1ae5aac3536f45222131c01e1f2433e8b1ecb3937
#6 resolve docker.io/library/caddy:2@sha256:9a8e0e6f0f0af954626903b1ae5aac3536f45222131c01e1f2433e8b1ecb3937 done
#6 sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.1s done
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 0B / 14.64MB 0.2s
#6 sha256:ed0d427b3a04b2050455705dcf60163fc468f049f08d83cc85150bc029e805da 7.45kB / 7.45kB 0.2s done
#6 sha256:2c0c17092266bbaf8de056d9c4315ae5e26b88a49d1bf2e2ed488c826bbc79e4 0B / 357.36kB 0.2s
#6 sha256:2c0c17092266bbaf8de056d9c4315ae5e26b88a49d1bf2e2ed488c826bbc79e4 357.36kB / 357.36kB 0.3s done
#6 sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 3.62MB / 3.62MB 0.3s done
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 1.05MB / 14.64MB 0.5s
#6 extracting sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 0.1s done
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 2.10MB / 14.64MB 0.6s
#6 extracting sha256:2c0c17092266bbaf8de056d9c4315ae5e26b88a49d1bf2e2ed488c826bbc79e4
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 4.19MB / 14.64MB 0.8s
#6 extracting sha256:2c0c17092266bbaf8de056d9c4315ae5e26b88a49d1bf2e2ed488c826bbc79e4 0.2s done
#6 extracting sha256:ed0d427b3a04b2050455705dcf60163fc468f049f08d83cc85150bc029e805da done
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 5.24MB / 14.64MB 0.9s
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 7.34MB / 14.64MB 1.1s
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 9.44MB / 14.64MB 1.2s
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 10.49MB / 14.64MB 1.4s
#6 sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 14.64MB / 14.64MB 1.5s done
#6 extracting sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc
#6 extracting sha256:1ea7e62d09d2d4cc58f1ce097c9404da4dcf0304c435e13cf52e318a17da75bc 0.4s done
#6 extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 done
#6 DONE 2.0s
#7 [2/2] COPY Caddyfile /etc/caddy/Caddyfile
#7 DONE 0.0s
#8 exporting to docker image format
#8 exporting layers 0.0s done
#8 exporting manifest sha256:f4403d86a197dda829b46ad5e79c49174882a5929f36f93fee0021d28c1203da done
#8 exporting config sha256:fade34aa42c4f965956677e5c245fcc60c6559309c5df7fce68827f49a3aada6
#8 exporting config sha256:fade34aa42c4f965956677e5c245fcc60c6559309c5df7fce68827f49a3aada6 done
#8 DONE 0.5s
#9 exporting cache to client directory
#9 preparing build cache for export
#9 writing cache manifest sha256:9763057139de955062443f393fac67d92e4372ec752d7021c68dfadf40580291 done
#9 DONE 0.5s
Pushing image to registry...
Upload succeeded
DONE
==> Deploying...
exec /usr/bin/caddy: operation not permitted
exec /usr/bin/caddy: operation not permitted
==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys