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

Fails for Postgres as postgres:11.2-alpine is not present in Docker Hub anymore #22

Open
vprotasov opened this issue Nov 22, 2022 · 10 comments

Comments

@vprotasov
Copy link

I am trying to use the latest version of the plugin with Postgres and get this error while Docker service is running:

Execution failed for task ':generateJooqClasses'.

Status 500: unknown image in /images/create?fromImage=postgres%3A11.2-alpine

Running verification/test target in the jooq-plugin project produces a similar error.

Image postgres:11.2-alpine is not present on the Docker hub anymore...
I guess because of critical security issues https://snyk.io/test/docker/postgres%3A11.2-alpine

@vprotasov vprotasov changed the title Fails fo Postgres as postgres:11.2-alpine is not present in Docker Hub Fails for Postgres as postgres:11.2-alpine is not present in Docker Hub anymore Nov 22, 2022
@diegoholiveira
Copy link

I'm having the same error, even I tried with another image:

jooq {
    image {
        tag = "13.1-alpine"
    }
}

Did you already find any solution to this issue?

@vprotasov
Copy link
Author

vprotasov commented Nov 24, 2022

@diegoholiveira works for me with

jooq {
    image {
        repository = "postgres"
        tag = "13-alpine"
    }
}

@adrianskrobaczrevolut
Copy link
Contributor

There is an open issue in Docker for Mac. Currently, until fixed, the simplest solution is to downgrade docker to 4.12 docker/for-mac#6540 (comment)

@vprotasov
Copy link
Author

vprotasov commented Nov 28, 2022

@adrianskrobaczrevolut

There is an open issue in Docker for Mac. Currently, until fixed, the simplest solution is to downgrade docker to 4.12 docker/for-mac#6540 (comment)

Thanks for the link but I have also reproduced this problem on Windows.

@joschi
Copy link

joschi commented Nov 30, 2022

@vprotasov The issue also exists on Docker Desktop for Windows.

moby/moby#44366 (comment)

@joschi
Copy link

joschi commented Nov 30, 2022

Image postgres:11.2-alpine is not present on the Docker hub anymore...

This is not correct. The image still exists on Docker Hub.
https://hub.docker.com/layers/library/postgres/11.2-alpine/images/sha256-cd1fb3df82521cc63a64591bd30542d04b2e29ed2398aa609d8286b7e9283222?context=explore
Screenshot of postgres:11.2-alpine on Docker Hub

@ashraymehta
Copy link

This issue is resolved in Docker Desktop 4.15.0 docker/for-mac#6540 (comment). I can confirm that it works now. The issue can be closed.

@kamilmodest
Copy link

kamilmodest commented Feb 1, 2023

Not the same error, but a similar one:

Tried Rancher Desktop in dockerd (moby) mode and Docker for Mac (4.16.2 (95914))

Status 500: {"message":"Head \"https://registry-1.docker.io/v2/library/postgres/manifests/11.2-alpine\": unauthorized: incorrect username or password"}

docker login works fine. I tried to pull a specific Postgres image via docker pull postgres:11.2-alpine - the image pulled successfully. But generateJooqClasses still fails with the error.

@joschi
Copy link

joschi commented Feb 1, 2023

@kamilmodest Could you try again with the latest release of this plugin?

https://github.com/revolut-engineering/jooq-plugin/releases/tag/0.3.9

@kamilmodest
Copy link

kamilmodest commented Feb 3, 2023

@joschi I tried, and the result was the same.

But then I tried Colima and completely removed credsStore property from ~/.docker/config.json, and it started to work.

And also, I installed brew install docker-credential-helper.
And ran this export DOCKER_HOST="unix://${HOME}/.colima/docker.sock"

I don't know what exactly helped, but I hope I won't see this error again 😅

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

6 participants