It would be cool if there would be a post-create hook that can run a script in the container.
Here is my usecase:
I want to create a reusable container that I can share on the public index but my configuration files need to have some secrets in them to run. For example username / password for sending email using ssmtp.
If I could embed a script into the image that is run just after the image is created, it can use environment variables (username, password) to 'fix' (sed) the configfiles, so that when the container is started all is well.
The Dockerfile should then also support a 'POSTCREATE' command, so that the author can easily add such.
For completeness: hooks are also referenced in #252, and naturally there are several other hooks which are desirable.
It would be cool if there would be a post-create hook that can run a script in the container.
Here is my usecase:
I want to create a reusable container that I can share on the public index but my configuration files need to have some secrets in them to run. For example username / password for sending email using ssmtp.
If I could embed a script into the image that is run just after the image is created, it can use environment variables (username, password) to 'fix' (sed) the configfiles, so that when the container is started all is well.
The Dockerfile should then also support a 'POSTCREATE' command, so that the author can easily add such.
For completeness: hooks are also referenced in #252, and naturally there are several other hooks which are desirable.