testcontainers / testcontainers-java

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.org
MIT License
8.02k stars 1.65k forks source link

Can´t connect to Private Docker Registry #5286

Open ItaloPalma opened 2 years ago

ItaloPalma commented 2 years ago

What´s the actual solution to solve this problem? I have seen the issue being discussed in many threads but couldn´t figure out how to solve the authentication problem. Could someone explain how to fix this?

kiview commented 2 years ago

Please share information about your setup and the error logs.

kiview commented 2 years ago

Might be related to this issue, although you are not pulling the image from Docker Hub: https://github.com/testcontainers/testcontainers-java/issues/5121

Can you try a Docker login including the protocol?

docker login https://docker-devel.depdes.artifactory.prod.cloud.ihf
ItaloPalma commented 2 years ago

I´ll also read the issue you mentioned.