diff options
author | Aanand Prasad <aanand.prasad@gmail.com> | 2015-07-20 09:36:35 +0100 |
---|---|---|
committer | Aanand Prasad <aanand.prasad@gmail.com> | 2015-07-20 19:50:18 +0100 |
commit | 33e1a58b6034f4b586a55b5b42e644c11c281d25 (patch) | |
tree | 3b8a2ae76c7595789276ddd44496b72a872ba284 /docker/constants.py | |
parent | 946eb964adceef7f531ca4f30c4bfe973566811a (diff) | |
download | docker-py-33e1a58b6034f4b586a55b5b42e644c11c281d25.tar.gz |
Stop pinging registries from the client
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 <aanand.prasad@gmail.com>
Diffstat (limited to 'docker/constants.py')
-rw-r--r-- | docker/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/constants.py b/docker/constants.py index f99f192..10a2fee 100644 --- a/docker/constants.py +++ b/docker/constants.py @@ -4,3 +4,7 @@ STREAM_HEADER_SIZE_BYTES = 8 CONTAINER_LIMITS_KEYS = [ 'memory', 'memswap', 'cpushares', 'cpusetcpus' ] + +INSECURE_REGISTRY_DEPRECATION_WARNING = \ + 'The `insecure_registry` argument to {} ' \ + 'is deprecated and non-functional. Please remove it.' |