wrong binding of host<->container directory (etc/<->etc/letsencrypt)

This commit is contained in:
andymel 2018-03-27 23:26:30 +02:00
parent 3ef1447e12
commit b73a1cee2d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ cd /home/ubuntu/docker/letsencrypt
Now get the certificate (modify ```mail.myserver.tld```) and following the certbot instructions. Now get the certificate (modify ```mail.myserver.tld```) and following the certbot instructions.
This will need access to port 443 from the internet, adjust your firewall if needed This will need access to port 443 from the internet, adjust your firewall if needed
``` ```
docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 443:443 deliverous/certbot certonly --standalone -d mail.myserver.tld docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/letsencrypt/:/etc/letsencrypt/ -p 443:443 deliverous/certbot certonly --standalone -d mail.myserver.tld
``` ```
You can now mount /home/ubuntu/docker/letsencrypt/etc/ in /etc/letsencrypt of ```docker-mailserver``` You can now mount /home/ubuntu/docker/letsencrypt/etc/ in /etc/letsencrypt of ```docker-mailserver```