How to automatically delete a file within a container?

Custom Scripts

The first part of this update is the support for a user’s custom scripts to run at startup. In every container, simply create a new folder located at /config/custom-cont-init.d and add any scripts you want. These scripts can contain logic for installing packages, copying over custom files to other locations, or installing plugins.

One example use case is our Piwigo container has a plugin that supports video, but requires ffmpeg to be installed. No problem. Add this bad boy into a script file (can be named anything) and you’re good to go.

Tells you all that in this paragraph. Folder is in the mapped /config/ dir so persistent, and below this we have an example including the shebang.