arminc / clair-scanner

Docker containers vulnerability scan
Apache License 2.0
848 stars 154 forks source link

could not get container for db: No such container: db. #108

Open mikperic opened 4 years ago

mikperic commented 4 years ago

In my Docker for Desktop Windows I performed:

docker run -p 5432:5432 -d --name db arminc/clair-db:2017-09-18 docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.6

and got following error:

docker: Error response from daemon: could not get container for db: No such container: db.

wuxler commented 4 years ago

In my Docker for Desktop Windows I performed:

docker run -p 5432:5432 -d --name db arminc/clair-db:2017-09-18 docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.6

and got following error:

docker: Error response from daemon: could not get container for db: No such container: db.

Please run docker ps -a to check container db has been Up.