I ran this command: sudo docker run -i --rm --name certbot -p 443:443 -p 80:80 -v /bwdata/letsencrypt:/etc/letsencrypt/ certbot/certbot certonly --logs-dir /etc/letsencrypt/logs
It produced this output:
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: mengyboi.xyz
Type: unauthorized
Detail: 45.201.198.193: Invalid response from Penguin's Association "\n\n \n Penguin's Association\n\n <meta charset="utf-8">\n"
Domain: vault.mengyboi.xyz
Type: unauthorized
Detail: 45.201.198.193: Invalid response from Penguin's Association "\n\n \n Penguin's Association\n\n <meta charset="utf-8">\n"
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 88. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
My web server is (include version): nginx
The operating system my web server runs on is (include version): Ubuntu server 22.04
My hosting provider, if applicable, is: home server
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.7.3
Which means: The HTTP ACME challenge requests are not reaching certbot.
If you are on the right server [IP]...
You can check that with the output of: curl -4 ifconfig.io
You may be able to proxy those requests into the container.
But you may not be able to bind the container to those ports [80 & 443] - if they are already in use outside the container.