Hi!
I want to automate the generation certs to docker
docker run -it -v $(PWD):/etc/letsencrypt/live \ certbot/dns-dnsimple \ certonly \ --email ex@ex.com \ --agree-tos \ --dns-dnsimple \ --dns-dnsimple-credentials /etc/letsencrypt/live/dnsimple.ini \ --no-eff-email \ -d "*.ex.com" -d ex.com
and i have in my directory on the local host
16:42 cert.pem -> ../../archive/ex.com/cert1.pem
fullchain.pem -> ../../archive/ex.com/fullchain1.pem
Now i use docker cp -L docker-name:/etc/letsencrypt/live/ex.com/fullchain.pem
But i want to remove container when it finishes.
Question: how to get certificate files on my local host via docker?
Thanks!