pumba
pumba copied to clipboard
Docker auth
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"
@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.
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.
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 ?