The docs for testcontainers
mentions DOCKER_AUTH_CONFIG. But I wasn't able to figure out how to use it for authenticating the pulling of Docker images from GHCR. Can u give examples of values one might reasonably put in this env?
The documentation that you linked says that DOCKER_AUTH_CONFIG
should contain the JSON string of the config.json
file, which should look something like this:
If you don't succeed, then go with the next option which is using the DOCKER_CONFIG
env variable with the path to your config.json
file.
1 Like