docker / scout-cli

Docker Scout CLI
https://docker.com/products/docker-scout
Other
255 stars 60 forks source link

Docker login no credential foun error only when run --it #21

Closed sbe-arg closed 12 months ago

sbe-arg commented 12 months ago
sudo docker login docker.io
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
sudo docker run -it --rm --name docker-scout docker/scout-cli qv repo/image
ERROR   Status: please login using Docker Desktop or 'docker login' command: no credential found for "index.docker.io", Code: 1 

No clue whats going on, any suggestions?

sbe-arg commented 12 months ago

Oh dear god. So I must pass the credentials as env var? We could mount the docker socket or something simplers for local scans