Open FynnHunt opened 4 years ago
Additional note: I tried checking the certbot log file in /var/log/letsencrypt/letsencrypt.log and it did not exist. I also can't find a log, which is a problem when trying debug ;(
Did you managed to fix it ?
Make sure to run the script with staging=1
atleast once to create all required structure.
I am trying to run init-letsencrypt inside of a docker container which I use to launch and maintain other docker containers on my host (by volume mounting the docker.sock). This is the docker-compose setup of the container I am trying to run init-letsencrypt inside of -
The whole nginx-certbot setup is inside my /nginx/ folder in the container, this is where the script is run from.
My assumption here is that by mounting the docker.sock and having access over docker running on the host means that when running docker-compose inside the container the commands will be sent through to the host. I think I have volume mounted the neccessary folders in to the container but I might be missing something?
The problem I am seeing when running init-letsencrypt.sh inside the container is from certbot -
Note: I have replaced my domain and other non relevant information with "...".
I might be missing something here but it looks like certbot is failing to write to /etc/letsencrypt/live ? Is this a permissions problem as I am attempting to run the script from within a container? Any help will be greatly appreciated!
Additional note: I tried checking the certbot log file in /var/log/letsencrypt/letsencrypt.log and it did not exist.