pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.84k stars 1.75k forks source link

wings: Allow Customizing Docker Arguments #5238

Open Kale-Ko opened 1 month ago

Kale-Ko commented 1 month ago

Is there an existing feature request for this?

Describe the feature you would like to see.

It would be super useful if it where possible to modify the arguments passed to Docker when creating a container. Currently I am running into an issue where the /tmp directory is being filled up by a program. I attempted to mount a directory on the host to /tmp but it was overwritten by the default tmpfs /tmp dir.

Describe the solution you'd like.

Somewhere in the wings config a template string or just trimmed down arguments list (from what is actually passed to docker) that can be modified to fit a users needs.

Additional context to this request.

There was also a time when I wanted to change the docker arguments to add the NET_RAW capability to a container but I end up finding a workaround for that.

danny6167 commented 1 month ago

The code really doesn't work like this. There isn't a string to template. We interact with the docker API directly. We aren't executing docker cli commands

Kale-Ko commented 1 month ago

It's JSON is it not? You could just merge the defaults and the user provided JSON together.

I guess in fairness that is easier said than done.