Testcontainers-java: How to connect to private docker registry

Created on 27 Oct 2018  Â·  3Comments  Â·  Source: testcontainers/testcontainers-java

Hi all!

I'm enjoying working with test containers so far!

Unfortunately, I cannot figure out how to configure it to authenticate with a private docker registry before pulling images? Is it possible? I could not find it in the documentation.

Most helpful comment

@ayedo could you share how you solved this?

All 3 comments

Hi Alon,
I’m glad to hear you’re enjoying using it!

As for private registries, things should ‘just work’. We use any credentials that have been set by docker login, or credentials obtained via the Docker credentials helper/store mechanism.

Basically, if a docker pull works, Testcontainers should also work.

It’s possible you’ve found an exception, and I certainly do think I need to add a bit more to the docs.

Please let me know if you’ve tried it and if anything strange happened.

Richard

On 27 Oct 2018, at 15:47, Alon Dolev notifications@github.com wrote:

Hi all!

I'm enjoying working with test containers so far!

Unfortunately, I cannot figure out how to configure it to authenticate with a private docker registry before pulling images? Is it possible? I could not find it in the documentation.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Richard,

thanks for your help!

I found a way to login before running my tests.

Alon

@ayedo could you share how you solved this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naderghanbari picture naderghanbari  Â·  3Comments

aniketbhatnagar picture aniketbhatnagar  Â·  3Comments

aruizca picture aruizca  Â·  4Comments

eksd picture eksd  Â·  3Comments

lovepoem picture lovepoem  Â·  3Comments