If you wish to test whether your docker container won't have issues when the old Root certificate expires, you can run the script inside the container itself.
In order to do this, follow these steps:
- Download the
verify-lets-encrypt.sh
script from the gist - Bring up your application container as you usually do - with
docker-compose up
,docker run
, via VS Code etc - Run
docker ps
, and look for any application containers that are up; theNAMES
column is the easiest for that - From the same folder where you've downloaded the script, run
docker exec -i /bin/sh < verify-lets-encrypt.sh
; this will run the script inside the container