Docker Community Forums

Share and learn in the Docker community.

Run bash script in host before docker image estarts

Hi, I’m using Let’s Encrypt certs on a gitlab docker image. The issue I’m facing is that after gitlab domain certs expire, I have to copy the latest certs to the SSL volume folder in the host. That’s not big deal, but I wonder if I can run a bash script in the host to copy latest cert files to SSL volume folder just before docker image starts up.

Thanks in advise!