podman: podman does not support both tag and digest for pulling images

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Docker will accept a tag and a digest to pull an image. It will pull that specific digest only, and completely ignore the tag.

Steps to reproduce the issue:

[jammy@ibm007470 ~]$ skopeo inspect docker://docker.io/fedora:32 | jq .Digest
"sha256:e69b5a62ce23c673885bddc94e6679c9b2af683059637ceddb9cff458537a326"
[jammy@ibm007470 ~]$ podman pull docker.io/fedora:32@sha256:e69b5a62ce23c673885bddc94e6679c9b2af683059637ceddb9cff458537a326
Error: invalid image reference "docker.io/fedora:32@sha256:e69b5a62ce23c673885bddc94e6679c9b2af683059637ceddb9cff458537a326"
[jammy@ibm007470 ~]$ docker pull docker.io/fedora:32@sha256:e69b5a62ce23c673885bddc94e6679c9b2af683059637ceddb9cff458537a326
sha256:e69b5a62ce23c673885bddc94e6679c9b2af683059637ceddb9cff458537a326: Pulling from library/fedora
0169c1449c16: Downloading  4.832MB/70.73MB

Describe the results you received: Podman does not pull

Describe the results you expected: Podman pulls successfully

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

[jammy@ibm007470 ~]$ podman version
Version:            1.9.3
RemoteAPI Version:  1
Go Version:         go1.14.2
OS/Arch:            linux/amd64

Package info (e.g. output of rpm -q podman or apt list podman):

podman-1.9.3-1.fc32.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.): Laptop

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 32 (13 by maintainers)

Commits related to this issue

Most upvoted comments

https://github.com/containers/common/pull/579 fixed the issue. It’ll be fixed in Podman next time we vendor c/common.

Generally speaking, we do consider Docker compatibility issues bugs (aside from a few places where we’ve deliberately decided to be somewhat different, e.g. no --link support).

Once it is in libimage, it will be vendored into Podman, Buildah and CRI-O.