[Feature Request] Scripts on Docker install/remove and start/stop

Recommended Posts

I don't know if this is somehow possible. But if it is, I would like the possibility to execute unRAID side bash scripts when installing/uninstalling a docker and when starting/stopping a docker.


When for example creating a FTP docker, one needs to use host networking, so the required active/passive ports are exposed. If the ftp daemon inside the docker uses the default port 21, it clashes with unRAIDs internal ftp server. So it would be nice, if such a docker could disable the internal ftp server on starting of the docker one.


Also it would be nice to access unraids passwd file from the docker, without having to mount the /etc from unraid. The file or parts of it could be copied on start of the docker to the dockers config folder and read from there.


These are just some use cases I would need for a working ProFTPd docker, but I imagine other docker authors would like such functionality, for their dockers too. I would like a discussion if this is a needed feature and if it is possible to implement. :)




Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.