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

Upgrade older images to OCI Format or Docker Image manifest v2, schema 2 #1236

Open
OrangeDog opened this issue May 13, 2024 · 3 comments
Open

Comments

@OrangeDog
Copy link

OrangeDog commented May 13, 2024

If for some reason you need an old postgres image, such as postgres:8.4, you can no longer pull it:

8.4: Pulling from library/postgres
[DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/library/postgres:8.4 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/

If possible, please can the older images on Docker Hub be upgraded?

If there's some Hub-wide solution for all default providers (the _/... images) that would be even better,

@tianon
Copy link
Member

tianon commented May 13, 2024

These very old images are a frequent topic of discussion at Docker (see docker/roadmap#173 for a public tracking issue). It has not yet been decided what's going to happen to them in the future.

For your specific issue, you'll need to use a tool which understands the older format and can convert it for you (such as an older version of Docker).

@vlsi
Copy link

vlsi commented Jun 25, 2024

@tianon , I appreciate your answer, however we use stock GitHub Actions for testing pgjdbc with older PG versions, so I am not sure "use older Docker version" is an option.

Here's a recent CI failure:
https://github.com/pgjdbc/pgjdbc/actions/runs/9659433599/job/26642807642#step:3:25

Pulling pgdb (postgres:8.4)...
8.4: Pulling from library/postgres
[DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/library/postgres:8.4 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/

Do you think you could update the manifest for 8.4 image? I guess it is possible without rebuilding the image itself (see docker/cli#3157 (comment) )

@LaurentGoderre
Copy link
Member

If it's only for CI use, you could use something like this to load just the filesystem.

crane export postgres:8.4 > postgres.tar
docker import postgres.tar postgres:8.4 
docker run postgres:8.4 /docker-entrypoint.sh

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

4 participants