Skip to content

docker:dind 20.10 - docker tcp host cannot be overridden  #292

@acornax

Description

@acornax

When using the docker:dind image, it's not possible to control which port it listens on when using its default entrypoint, because this is hardcoded: https://github.com/docker-library/docker/blob/master/20.10/dind/dockerd-entrypoint.sh#L120

We would like to be able to override this port, ideally by passing an environment variable to the dind container. I am happy to submit a pull request if that would be of interest.

In our specific use case we're upgrading the dind image we use to enable TLS, but we don't want to have to update every piece of old code to use tcp://0.0.0.0:2376. We'd rather it continue using tcp://0.0.0.0:2375.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions