Skip to content

--config also accepts a file path #2439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tristanlins
Copy link

- What I did

The behavior of the --config parameter (and the DOCKER_CONFIG variable) has changed. In addition to a directory path, this now also accepts a file path.

- How I did it

It is checked whether the specified path is a directory or a file.

- How to verify it

$ mv -vi ~/.docker/config.json ~/.docker/cli.json
renamed '~/.docker/config.json' -> '~/.docker/cli.json'
$ docker push <some image>
# should fail
$ docker --config ~/.docker/cli.json <some image>
# should work

- Description for the changelog

  • --config also accepts a file path

- A picture of a cute animal (not mandatory but encouraged)

animation

Signed-off-by: Tristan Lins <tristan.lins@chamaeleon.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants