My domain is:
I ran this command:
certonly --webroot --webroot-path /var/www/certbot/ -d test.mghr.org -m firstname.lastname@example.org --agree-tos --non-interactive
It produced this output:
My web server is (include version):
Nginx running in docker
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot):
Zoom out. Show us the
docker-compose.yml or the
docker run command.
once the container is running, I executed the following using bash inside the container.
$ apt update && apt install certbot -y
$ certbot certonly --webroot --webroot-path /var/www/certbot/ -d test.mghr.org -m email@example.com --agree-tos --non-interactive
What OS are you hosting docker in? Windows doesn't support symlinks and it's looks like this operation that's failing. It sounds similar to OSError: [Errno 95] Not supported · Issue #4850 · certbot/certbot · GitHub
This is just a mess. There's no good way to make a webserver and an acme client cooperate, in docker.
There are just several hacky ways. Find one you like, or ask for alternatives.
I am hosting on Azure Containers, there are other couple of containers so its a multi-container instance.
Thank You, The link was really helpful