CircleCI-Public / circleci-cli

Use CircleCI from the command line
https://circleci-public.github.io/circleci-cli/
MIT License
405 stars 233 forks source link

Unable to start job with private images using `circleci local execute` #1033

Open adoy opened 5 months ago

adoy commented 5 months ago

Meta:

CircleCI CLI Version: 0.1.29658+dd6a5b1

Operating System: Linux debian 12.2

CircleCI CLI Diagnostic:

---
CircleCI CLI Diagnostics
---
Debugger mode: false
Config found: /home/pierrick/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API... 
Ok.
Hello, Pierrick Charron.

Current behavior:

I'm trying to run a job locally to test. The job is using an image that is on a private docker repo and the local execute command is unable to download it.

Starting container harbor.example.net/foo/bar:latest
  image cache not found on this host, downloading harbor.example.net/foo/bar:latest
Error: 
Error response from daemon: unauthorized: unauthorized to access repository: foo/bar, action: pull: unauthorized to access repository: foo/bar, action: pull

I tried to download it so that the image is already available but still not working :

Starting container harbor.example.net/foo/bar:latest                                                                                                                                                     
  image is cached as harbor.example.net/foo/bar:latest, but refreshing...                     
Error:                                                                                                     
Error response from daemon: unauthorized: unauthorized to access repository: foo/bar, action: pull: unauthorized to access repository: foo/bar, action: pull

Expected behavior:

I expect it to work using at least one of those solutions:

When did this begin / Was this previously working?:

Never saw this working

Additional Information: