anchore-engine icon indicating copy to clipboard operation
anchore-engine copied to clipboard

Anchore CLI is not working

Open cjmakwana opened this issue 3 years ago • 1 comments

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.

cjmakwana avatar Jun 11 '21 11:06 cjmakwana

Hello @cjmakwana, thank you for filing the ticket. Can you share some context by answering the following questions

  1. Where is anchore-engine deployed - docker-compose or k8s
  2. What is the exact anchore-cli command used and where was it executed from
  3. Was there any additional configuration for anchore-cli such as environment variables overriding the url, username, password etc

nightfurys avatar Jul 06 '21 22:07 nightfurys