Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Manifest Inspect Not working for Ubuntu Latest images #45077

Closed
HarishKVarada opened this issue Feb 27, 2023 · 1 comment
Closed

Docker Manifest Inspect Not working for Ubuntu Latest images #45077

HarishKVarada opened this issue Feb 27, 2023 · 1 comment
Labels
kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/0-triage version/20.10

Comments

@HarishKVarada
Copy link

Description

I am trying to run docker manifest inspect against Ubuntu version 18.04 and 20.04 and both are failing with No Such Manifest : docker.io/library/ubuntu:. We check this each night to see if there is a new image. It's by checking the current manifest for a tag.

I see recently ubuntu has some updates in docker hub for few tags. A Month Ago and from then we're seeing this error on Ubuntu

Reproduce

docker manifest inspect ubuntu:18.04
no such manifest: docker.io/library/ubuntu:18.04

docker manifest inspect ubuntu:lunar-20230124.1
no such manifest: docker.io/library/ubuntu:lunar-20230124.1

docker manifest inspect ubuntu:20.04
no such manifest: docker.io/library/ubuntu:20.04

Expected behavior

docker manifest inspect ubuntu:lunar-20221216
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"size": 529,
"digest": "sha256:a40051efc6b591d38faffb11fdcef157103b9a4143edbc959c47e4b8c7d2e9eb",
"platform": {
"architecture": "amd64",
"os": "linux"
}
},

docker version

PS C:\windows\system32> docker version
Client:
 Cloud integration: v1.0.29
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:09:02 2022
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.12.0 (85629)
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:23 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.8
  GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.9.1)
  compose: Docker Compose (Docker Inc., v2.10.2)
  extension: Manages Docker extensions (Docker Inc., v0.2.9)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.19.0)

Server:
 Containers: 3
  Running: 0
  Paused: 0
  Stopped: 3
 Images: 5
 Server Version: 20.10.17
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.16.3-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 24.82GiB
 Name: docker-desktop
 ID: OLTN:UMSL:CFJS:RBMI:VKDG:IK7Y:C5YP:BQOM:JTZN:LOXV:ZLW5:KLSQ
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  127.0.0.0/8
 Live Restore Enabled: false

Additional Info

No response

@HarishKVarada HarishKVarada added kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/0-triage labels Feb 27, 2023
@thaJeztah
Copy link
Member

I think this is because the images switched to use the OCI mediatype.

This should be fixed in docker 23.0 through docker/cli#3990

docker manifest inspect ubuntu:18.04
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 424,
         "digest": "sha256:fdd3c9372c19afa928f99afde58f0f80a008ebb695a8c5ee37de5adb7feb46de",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },

if you cannot update to 23.0, but have buildx installed, you can use docker buildx imagetools inspect

buildx imagetools inspect ubuntu:18.04
Name:      docker.io/library/ubuntu:18.04
MediaType: application/vnd.oci.image.index.v1+json
Digest:    sha256:a3765b4d74747b5e9bdd03205b3fbc4fa19a02781c185f97f24c8f4f84ed7bbf

Manifests:
  Name:      docker.io/library/ubuntu:18.04@sha256:fdd3c9372c19afa928f99afde58f0f80a008ebb695a8c5ee37de5adb7feb46de
  MediaType: application/vnd.oci.image.manifest.v1+json
  Platform:  linux/amd64

  Name:      docker.io/library/ubuntu:18.04@sha256:f21972d048d5439834187f47e9e2869e5434a3c5d49f7ef721d3d5f62fe7de60
  MediaType: application/vnd.oci.image.manifest.v1+json
  Platform:  linux/arm/v7
...

Closing this one as this was fix in 23.0

akakream added a commit to akakream/MultiPlatform2IPFS that referenced this issue Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. status/0-triage version/20.10
Projects
None yet
Development

No branches or pull requests

3 participants