kamal icon indicating copy to clipboard operation
kamal copied to clipboard

accept arbitrary docker run arguments

Open moomerman opened this issue 2 years ago • 1 comments

I've got a couple of scenarios where I want to provide additional arguments to the docker run command, but at present it doesn't look like there's a way to provide them via configuration.

One example is where I want to provide additional capabilities to the container:

 --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device=/dev/net/tun

Rather than supporting capabilities and devices as special cases, perhaps we can just provide a run_args config where you can specify additional arguments?

Happy to implement it if desired.

moomerman avatar Mar 04 '23 22:03 moomerman

Happy to see this. We already have a specialized version of this for Traefik. So you can follow that pattern 👍

dhh avatar Mar 05 '23 08:03 dhh

Sorted via https://github.com/mrsked/mrsk/pull/95

dhh avatar Mar 09 '23 10:03 dhh