root@******:/home/marek# docker container run \

-it --rm --name certbot
-v /srv/letsencrypt/var/lib:/var/lib/letsencrypt
-v /srv/letsencrypt/etc:/etc/letsencrypt
-v /srv/nginx/html:/data/letsencrypt
certbot/certbot certonly
–cert-name ************
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?

1: Spin up a temporary webserver (standalone)
2: Place files in webroot directory (webroot)

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2
Plugins selected: Authenticator webroot, Installer None
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel): ***********

An unexpected error occurred:
ConnectionError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6cccb4cd0>: Failed to establish a new connection: [Errno -2] Name does not resolve’,))
Please see the logfiles in /var/log/letsencrypt for more details.

root@*******:/home/marek# curl
“MammWBEAgaw”: “Adding random entries to the directory”,
“keyChange”: “”,
“meta”: {
“caaIdentities”: [
“termsOfService”: “”,
“website”: “
“newAccount”: “”,
“newNonce”: “”,
“newOrder”: “”,
“revokeCert”: “


SORY - my fault - my company DNS resolver is wierd :slight_smile:

nano /etc/resolv.conf

(google dns resolver)


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.