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

Can't pull ubuntu:20.04 and ubuntu:18:04 since last week #14025

Closed
ikimpriv opened this issue Feb 6, 2023 · 7 comments
Closed

Can't pull ubuntu:20.04 and ubuntu:18:04 since last week #14025

ikimpriv opened this issue Feb 6, 2023 · 7 comments

Comments

@ikimpriv
Copy link

ikimpriv commented Feb 6, 2023

Hi!
Last week our builds started failing with the following errors, trying to pull base ubuntu images from docker hub:

mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'

Only the older ubuntu images still working.

I tried docker pull today and it's still failing

docker pull ubuntu:20.04
20.04: Pulling from library/ubuntu
mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'

@yosifkit
Copy link
Member

yosifkit commented Feb 7, 2023

The Ubuntu images have moved to OCI images: #13950 (after a slight snafu #13983 & fix #13988). Over time, all of the official images will be moving to OCI media types (application/vnd.oci.*) instead of the current Docker media types (application/vnd.docker.*).

What version of Docker are you using? Docker version 18.06 should be new enough for OCI image support (https://docs.docker.com/engine/release-notes/18.06/#18060-ce).

@shaik1a
Copy link

shaik1a commented Feb 9, 2023

Hi, Iam also facing same issue

-bash-4.2$ docker --version
Docker version 19.03.1, build 74b1e89
-bash-4.2$

-bash-4.2$ docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not 'application/vnd.oci.image.manifest.v1+json'

Docker version is 19.03.1 and not able to pull ubuntu.

@tianon
Copy link
Member

tianon commented Feb 9, 2023

Can you please post the full output of docker version and docker info? Telling us which version of the Docker CLI you're running doesn't really help. 😄

@ikimpriv
Copy link
Author

ikimpriv commented Feb 9, 2023

I upgraded docker to the latest version (ubuntu 18.04 / docker 23.0.0) and it works fine now.
The node was running on a pretty old 2019... docker.
Thank you!

@shaik1a
Copy link

shaik1a commented Feb 10, 2023

Can you please post the full output of docker version and docker info? Telling us which version of the Docker CLI you're running doesn't really help. 😄

Please find the output of docker version and info

-bash-4.2$ docker version
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:21:07 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:19:36 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683

=====================
-bash-4.2$ docker info
Client:
Debug Mode: false
Plugins:
compose: Docker Compose (Docker Inc., v2.6.0)

Server:
Containers: 24
Running: 8
Paused: 0
Stopped: 16
Images: 195
Server Version: 19.03.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
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: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: -
runc version: -
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-957.27.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 31.51GiB
Name: devcent74-55
ID: -
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
artifactory.com
127.0.0.0/8
Live Restore Enabled: false

@slieschke
Copy link

slieschke commented Feb 10, 2023

It looks like Docker 19.03 had a regression where OCI image support was broken per moby/moby#39727.

@tianon
Copy link
Member

tianon commented Feb 10, 2023

Ah, nice catch! So if you update to 19.03.5 or newer, it should be fixed (although it would honestly be in your best interest to update to 20.10.x or even the newly released 23, as the 19.03.x branch is long-since EOL).

@tianon tianon closed this as completed Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants