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

Docker auth #131

Open
jhmartin opened this issue Jun 25, 2019 · 3 comments
Open

Docker auth #131

jhmartin opened this issue Jun 25, 2019 · 3 comments
Labels

Comments

@jhmartin
Copy link

tc-image may refer to a repository that requires authentication. Read $HOME/.docker/config.json to for matching credentials.

Example where it fails:

v3.10-1: Pulling from myrepo/iproute2
Digest: sha256:bdb16fdd3e21102334ddc76b12639cb4b82b121704e2e3a3f4525171797d9af7
Status: Image is up to date for myrepo/iproute2

However, pumba in the same shell says:

FATA[0000] Error response from daemon: Get https://myrepo/v2/iproute2/manifests/latest: no basic auth credentials  app=pumba function=main.main source="cmd/main.go:162"
@alexei-led alexei-led added the bug label Jun 26, 2019
@alexei-led
Copy link
Owner

@jhmartin thank you for bug report, I will take a look at Go SDK to see if it's possible to reuse existing config file.

@nikos912000
Copy link

Hi @alexei-led

We have a similar issue when using a stress-ng image from our internal registry. Running the following:

docker run -it -v /var/run/docker.sock:/var/run/docker.sock <my-registry>/gaiaadm/pumba:0.7.5 stress --duration 30s --stress-image <my-registry>/alexeiled/stress-ng:0.11.22  testimage

returns an auth error message:

FATA[0004] one or more stress test failed: failed to pull stress-ng image: Error response from daemon: Get <my-registry>/v2/alexeiled/stress-ng/manifests/0.11.22: unknown: Authentication is required

Would it be possible to bind mount the credentials under a fixed path?
When running on Kubernetes this is not a problem since we're using the imagePullSecrets.

@Gabrix89
Copy link

Gabrix89 commented Jan 8, 2021

Hello @alexei-led,

I just want to let you know I have the same issues as described above (in both 'cases' - using own docker repository for tc or stress images)

level=fatal msg="one or more stress test failed: failed to pull stress-ng image: Error response from daemon: Get https://<my_repo>/<my_image>: no basic auth credentials

Is there any way to overwrite docker settings inside pumba pod? I was trying to mount docker secret under /root/.docker/config.json, but then I have realized it won't work in this case ...

Maybe that is a solution https://docs.docker.com/engine/api/sdk/examples/#pull-an-image-with-authentication ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants