Skip to content

Commit 7287ab3

Browse files
authored
Merge pull request docker#2872 from thaJeztah/deprecate_non_compliant_registries
Add deprecation note for non-compliant registries
2 parents 029ab02 + aa91af8 commit 7287ab3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/deprecated.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,38 @@ Removed | [`--api-enable-cors` flag on `dockerd`](#--api-enable-cors-flag-on-
9595
Removed | [`--run` flag on `docker commit`](#--run-flag-on-docker-commit) | v0.10 | v1.13
9696
Removed | [Three arguments form in `docker import`](#three-arguments-form-in-docker-import) | v0.6.7 | v1.12
9797

98+
### Pulling images from non-compliant image registries
99+
100+
**Deprecated in Release: v20.10**
101+
102+
Docker Engine v20.10 and up includes optimizations to verify if images in the
103+
local image cache need updating before pulling, preventing the Docker Engine
104+
from making unnecessary API requests. These optimizations require the container
105+
image registry to conform to the [Open Container Initiative Distribution Specification](https://github.com/opencontainers/distribution-spec).
106+
107+
While most registries conform to the specification, we encountered some registries
108+
to be non-compliant, resulting in `docker pull` to fail.
109+
110+
As a temporary solution, Docker Engine v20.10 includes a fallback mechanism to
111+
allow `docker pull` to be functional when using a non-compliant registry. A
112+
warning message is printed in this situation:
113+
114+
WARNING Failed to pull manifest by the resolved digest. This registry does not
115+
appear to conform to the distribution registry specification; falling back to
116+
pull by tag. This fallback is DEPRECATED, and will be removed in a future
117+
release.
118+
119+
The fallback is added to allow users to either migrate their images to a compliant
120+
registry, or for these registries to become compliant.
121+
122+
Note that this fallback only addresses failures on `docker pull`. Other commands,
123+
such as `docker stack deploy`, or pulling images with `containerd` will continue
124+
to fail.
125+
126+
Given that other functionality is still broken with these registries, we consider
127+
this fallback a _temporary_ solution, and will remove the fallback in an upcoming
128+
major release.
129+
98130
### Linux containers on Windows (LCOW) (experimental)
99131

100132
**Deprecated in Release: v20.10**

0 commit comments

Comments
 (0)