Skip to content

Support for docker run arguments in docker_environment #18994

Open
@generalov

Description

@generalov

Is your feature request related to a problem? Please describe.
I'd like to specify additional docker run arguments for a docker_environment.

Describe the solution you'd like

docker_environment(
  ...,
  docker_run_args = ["--add-host pypi.myorg.com:10.0.1.11"]
)

Describe alternatives you've considered
Alternatively, docker_environment could inherit the docker run arguments from [docker].run_args in pants.toml.

Additional context
Probably, there should be another tool for spawning complex environments like docker compose or devcontainers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions