anchore-engine
anchore-engine copied to clipboard
Anchore CLI is not working
Is this a request for help?:
Is this a BUG REPORT or a FEATURE REQUEST? (choose one):
Version of Anchore Engine and Anchore CLI if applicable:
What happened:
What did you expect to happen:
Any relevant log output from /var/log/anchore:
What docker images are you using:
How to reproduce the issue:
Anything else we need to know:
Hello,
For a demo setup I want to use Anchore for container vulnerability testing. However, I am not able to run the Anchore CLI with the error:
DEBUG:anchorecli.clients.apiexternal:As Account = None DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8228 Error: could not access anchore service (user=admin url=http://localhost:8228/v1/): HTTPConnectionPool(host='localhost', port=8228): Max retries exceeded with url: /v1/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f585bcc61f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Please note that I am able to browse the APIs, however:
http://localhost:8228/v1 http://localhost:8228/v1/images/list
Though I don't find any image, at least I can run the API service successfully.
Kindly let me know if I am missing anything.
Hello @cjmakwana, thank you for filing the ticket. Can you share some context by answering the following questions
- Where is anchore-engine deployed - docker-compose or k8s
- What is the exact anchore-cli command used and where was it executed from
- Was there any additional configuration for anchore-cli such as environment variables overriding the url, username, password etc