Skip to content

Stop pinging registries from the client - #681

Merged
shin- merged 1 commit into
docker:masterfrom
aanand:remove-registry-ping
Jul 20, 2015
Merged

shin- merged 1 commit into
docker:masterfrom
aanand:remove-registry-ping

Conversation

@aanand

@aanand aanand commented Jul 20, 2015

Copy link
Copy Markdown
Contributor

The daemon already pings the registry, so doing it on our end is redundant and error-prone.

  • The insecure_registry argument to push(), pull() and login() has been deprecated - in the latter case, it wasn't being used anyway.
  • The insecure argument to docker.auth.resolve_repository_name() has also been deprecated.
  • docker.utils.ping_registry() has been deprecated.
  • docker.auth.expand_registry_url() has been removed.
  • docker.auth.resolve_repository_name() now returns a hostname as the first part of the tuple, rather than a full URL.
  • When encountering a legacy ~/.dockercfg with only authentication information for the Hub, docker.auth.load_config() now returns a dict with index.docker.io as its sole key, not https://index.docker.io/v1/.

Comment thread docker/auth/auth.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stay consistent across the board and use format() instead :)

The daemon already pings the registry, so doing it on our end is
redundant and error-prone.

The `insecure_registry` argument to `push()`, `pull()` and `login()` has
been deprecated - in the latter case, it wasn't being used anyway.

The `insecure` argument to `docker.auth.resolve_repository_name()` has
also been deprecated.

`docker.utils.ping_registry()` has been deprecated.

`docker.auth.expand_registry_url()` has been removed.

Signed-off-by: Aanand Prasad <[email protected]>
@aanand
aanand force-pushed the remove-registry-ping branch from 62796c8 to 33e1a58 Compare July 20, 2015 18:50
@aanand

aanand commented Jul 20, 2015

Copy link
Copy Markdown
Contributor Author

Updated:

  • Use format instead of %
  • Store the deprecation warning in constants.py to avoid reuse

@shin-
shin- merged commit 33e1a58 into docker:master Jul 20, 2015
@shin-

shin- commented Jul 20, 2015

Copy link
Copy Markdown
Contributor

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants