-
-
Notifications
You must be signed in to change notification settings - Fork 580
fix: simplify fully-qualified image names #2846
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
fix: simplify fully-qualified image names #2846
Conversation
Images used in the tests, and in the modules are using a wrong Docker image prefix: docker.io. It's better to ask for "nginx:latest" and let the engine deal with the image references.
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
* main: fix(compose): race condition (testcontainers#2842)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one issue and a few questions
Oh if the concern is about *.io going away what about https://index.docker.io/v1/? |
No, because that's the correct index for the registry (Docker Hub) |
Co-authored-by: Steven Hartland <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a few suggestions while you're making changes.
* main: chore: use require.(No)Error(t,err) instead of t.Fatal(err) (testcontainers#2851) fix: simplify fully-qualified image names (testcontainers#2846)
What does this PR do?
This PR removes all the prefixes for
docker.io
from the images used in 1) tests for the library, 2) modulesWhy is it important?
It's better to ask for "nginx:latest" and let the engine deal with the image references than to enforce an invalid docker registry.
If we wanted to be explicit about official images, we should have used
https://index.docker.io/v1/library/nginx:latest
instead.It also removes a bug when using Docker Desktop, as it considered those images were not accessible for the already used docker credentials.