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

[Bug]: Failed to get image auth for https://index.docker.io/v1/. [...] Error is: credentials not found in native keychain #2752

Open
simon-connektica opened this issue Aug 27, 2024 · 4 comments
Labels
bug An issue with the library

Comments

@simon-connektica
Copy link

Testcontainers version

0.33.0

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host arch

x86_64

Go version

1.22.3

Docker version

Client: Docker Engine - Community
 Version:           27.1.2
 API version:       1.46
 Go version:        go1.21.13
 Git commit:        d01f264
 Built:             Mon Aug 12 11:50:58 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.1.2
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.13
  Git commit:       f9522e5
  Built:            Mon Aug 12 11:50:58 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.20
  GitCommit:        8fc6bcff51318944179630522a095cc9dbf9f353
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker info

Client: Docker Engine - Community
 Version:    27.1.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 20
 Server Version: 27.1.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.0-23-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 31.06GiB
 Name: simon-cka
 ID: c45e4c59-3411-4d1e-b955-9b34bb26ee96
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

What happened?

  • There's a failure when testcontainers tries to pull the public docker postgres:13-alpine both on my machine and in Github Actions.
  • I can run docker pull postgres:13-alpine without any issue on my machine, so I don't think it's an issue with my docker config. I have no credentials set for docker.io in my config.
  • I tried downgrading to 0.32.0 but the error persists.

Relevant log output

2024/08/27 09:26:36 Failed to get image auth for https://index.docker.io/v1/. Setting empty credentials for the image: postgres:13-alpine. Error is: credentials not found in native keychain

Additional information

No response

@simon-connektica simon-connektica added the bug An issue with the library label Aug 27, 2024
@testcontainers testcontainers deleted a comment from yiweifengyan Aug 27, 2024
@sumit-anantwar
Copy link

facing the same thing for the MSSqlServer image.
It happens regularly in our CI pipelines.
It also happened a couple of times on my local system, but mostly on the CI

Failed to get image auth for mcr.microsoft.com. Setting empty credentials for the image: mcr.microsoft.com/mssql/server:2022-latest. Error is:credentials not found in native keychain

@lorenzoranucci
Copy link

Facing the same issue with MSSQL.
The issue happens regularly on CI (Github Actions) starting from today.

Failed to get image auth for mcr.microsoft.com. Setting empty credentials for the image: mcr.microsoft.com/mssql/server:2019-CU20-ubuntu-20.04. Error is: credentials not found in native keychain

@xsteadfastx
Copy link

running into this from today on with our gitlab-runner. any ideas? is it some rate limit?

@mdelapenya
Copy link
Member

Hi folks, what version of the library are you using? IIRC we added some fixes in that part in the most recent releases. Could you verify that? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

No branches or pull requests

5 participants