Closed Imperial-Guard closed 5 years ago
If you build you own image with custom addons you may need to add:
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
@werty1st Thanks, it works!
I am getting the same error with the latest image
Activating privacy features... 2019/03/25 12:18:28 [INFO][FileStorage:/etc/caddycerts] Started certificate maintenance routine 2019/03/25 12:18:28 get Agreement URL: Get https://acme-v02.api.letsencrypt.org/directory: x509: certificate signed by unknown authority exit status 1
Any thoughts?
I let the docker run with the following command:
docker run --init -d --name="caddy" --restart always -v "caddy_config:/root/.caddy" -v "caddy_config:/srv" -v "caddy_config:/etc" -e "CADDYPATH=/etc/caddycerts" -e ACME_AGREE=true -v caddy_config:/etc/caddycerts -p 80:80 -p 443:443 abiosoft/caddy