<#20440 Add support for adding arbitrary docker fl...
# github-notifications
c
#20440 Add support for adding arbitrary docker flags Issue created by kuza55 Is your feature request related to a problem? Please describe. Docker has a lot of different flags, most of which are not officially supported via pants, I'd like to be able to use them without needing code changes to pants. E.g. right now I need to add --debug to my command to see some stack traces from docker. Previously I wanted to use the cache_to/from args before they were officially in pants. I would also like to be able to setup run args, e.g. ports to forward, volumes to map, etc. Describe the solution you'd like I'd like docker_image and pants.toml to get some extra parameters for extra_command_line_build_args to be passed to docker build and extra_command_line_run_args to be passed to docker run. Adding formatting for putting variables (eg homedir, pants hash, etc) into args would also be helpful. Describe alternatives you've considered Adding every flag to pants that does not need special handling seems wasteful. pantsbuild/pants