]> purplebirdman git - web-certificates.git/blobdiff - fetch-certificates.sh
Make sure the local docker image is always up to date
[web-certificates.git] / fetch-certificates.sh
index 60cf431a24cf6ceea70d6bd1aeda5feebc3863d6..887c665c55d10f41e940ab94193691e4efe536b0 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/bash
 # source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
 
-docker run -it --rm --name certbot \
+# make sure the local image is always up to date
+docker image pull certbot/dns-route53
+
+# run local instance only long enough to collect the certificate
+docker run --rm --name certbot \
             -v "/etc/letsencrypt:/etc/letsencrypt" \
             -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
             -v "$HOME/.aws:/aws" \