Login failed: https://registry-1.docker.io/v2/catthehacker/ubuntu/manifests/act-latest
Bug report info
act version: 0.2.49
GOOS: windows
GOARCH: amd64
NumCPU: 4
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
\\.\pipe\docker_engine(broken)
Config files:
C:\Users\lukas\.actrc:
-P ubuntu-latest=catthehacker/ubuntu:act-latest
-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
Go version: go1.20.6
Module path: github.com/nektos/act
Main version: (devel)
Main path: github.com/nektos/act
Main checksum:
Build settings:
-buildmode: exe
-compiler: gc
-ldflags: -s -w -X main.version=0.2.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser
CGO_ENABLED: 0
GOARCH: amd64
GOOS: windows
GOAMD64: v1
vcs: git
vcs.revision: d5d854854651c151ecd914bb6e2e370e0057929a
vcs.time: 2023-08-01T02:21:38Z
vcs.modified: false
Docker Engine:
Engine version: 24.0.5
Engine runtime: runc
Cgroup version: 1
Cgroup driver: cgroupfs
Storage driver: overlay2
Registry URI: https://index.docker.io/v1/
OS: Docker Desktop
OS type: linux
OS version:
OS arch: x86_64
OS kernel: 5.15.90.1-microsoft-standard-WSL2
OS CPU: 4
OS memory: 7888 MB
Security options:
name=seccomp,profile=unconfined
Command used with act
act push
Describe issue
When act pulls the docker image it tries to use credentials. They are not valid. act then retries without credentials and this works.
When I use act multiple times in quick succession the failed login seems to hit a rate limit. act now does not retry without credentials and exits.
Link to GitHub repository
No response
Workflow content
name: "Dummy Workflow"
on:
push:
tags:
- "**"
jobs:
dummy-job:
name: "Dummy Job"
runs-on: "ubuntu-latest"
steps:
- name: "Dummy Step"
run: echo "Hello World"
Relevant log output
Output for first few runs:
[Dummy Workflow/Dummy Job] 🚀 Start image=catthehacker/ubuntu:act-latest
[Dummy Workflow/Dummy Job] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Dummy Workflow/Dummy Job] [DEBUG] 🐳 docker pull catthehacker/ubuntu:act-latest
[Dummy Workflow/Dummy Job] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
[Dummy Workflow/Dummy Job] using DockerAuthConfig authentication for docker pull
[Dummy Workflow/Dummy Job] pulling image 'docker.io/catthehacker/ubuntu:act-latest' () failed with credentials Error response from daemon: Head "https://registry-1.docker.io/v2/catthehacker/ubuntu/manifests/act-latest": unauthorized: incorrect username or password retrying without them, please check for stale docker config files
time="2023-08-24T01:52:08+01:00" level=debug msg="Saving notices etag=b72f7fb5-429a-4948-a468-f9dad91ff249"
time="2023-08-24T01:52:08+01:00" level=debug msg="No new notices"
[Dummy Workflow/Dummy Job] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[Dummy Workflow/Dummy Job] [DEBUG] Digest: sha256:6d3a4260acda04196766c084491a8f2111e28941ecdebe926b92df87cbf64402 ::
[Dummy Workflow/Dummy Job] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest ::
[Dummy Workflow/Dummy Job] 🐳 docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
act continues successfully after above output
Output when running multiple times in quick succession:
[Dummy Workflow/Dummy Job] 🚀 Start image=catthehacker/ubuntu:act-latest
[Dummy Workflow/Dummy Job] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Dummy Workflow/Dummy Job] [DEBUG] 🐳 docker pull catthehacker/ubuntu:act-latest
[Dummy Workflow/Dummy Job] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
[Dummy Workflow/Dummy Job] using DockerAuthConfig authentication for docker pull
Error: Error response from daemon: Head "https://registry-1.docker.io/v2/catthehacker/ubuntu/manifests/act-latest": toomanyrequests: too many failed login attempts for username or IP address
act exits after above output
Additional information
Workaround:
docker pull image=catthehacker/ubuntu:act-latest
act --pull=false
Issue is stale and will be closed in 14 days unless there is new activity
Se still have this. no stale
I am facing the same issue under WSL2. Workaround is to either remove ~/.docker/config.json, or simply rename the credsStore key inside, so that it is not found:
{
"_credsStore": "desktop.exe"
}
This survives until the Docker Desktop is restarted.