diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-05-27 16:13:54 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-05-31 14:38:43 +0200 |
commit | fb4a0c572ed1264ebb12218e8905c4845cb159c5 (patch) | |
tree | ec71658e6352e62b29e8bb931faf96a0b644ed1c /pkg/api/handlers/libpod/manifests.go | |
parent | 59236762eca31a20d886837698db58e259a21de5 (diff) | |
download | podman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.tar.gz podman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.tar.bz2 podman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.zip |
support tag@digest notation
Vendor in the latest HEAd of containers/common to implicitly support the
tag@digest notation for images. To remain compatible with Docker, the
tag will be stripped off the image reference and is entirely ignored.
Fixes: #6721
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod/manifests.go')
-rw-r--r-- | pkg/api/handlers/libpod/manifests.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/manifests.go b/pkg/api/handlers/libpod/manifests.go index f21eb2e80..2f36db583 100644 --- a/pkg/api/handlers/libpod/manifests.go +++ b/pkg/api/handlers/libpod/manifests.go @@ -169,7 +169,7 @@ func ManifestPush(w http.ResponseWriter, r *http.Request) { errors.Wrapf(err, "failed to parse parameters for %s", r.URL.String())) return } - if _, err := utils.ParseDockerReference(query.Destination); err != nil { + if err := utils.IsRegistryReference(query.Destination); err != nil { utils.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest, err) return } |