Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Specify location of ~/.docker/config.json #111

@pcj

Description

@pcj

The docker CLI has a --config flag that allows one to specify an alternate location for the docker config directory. I am primarily interested in implementing push/pull basic auth support in rules_docker bazelbuild/rules_docker#526 and would benefit from such functionality here.

As the pusher.par already has a --config flag for a different purpose, I am proposing a flag named --client_config or similar to configure the directory where the config.json file is. This new feature would largely affect https://github.com/google/containerregistry/blob/master/client/docker_creds_.py#L222-L228.

Any objections to this? Working on a PR now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions