Clair 启动报错 grpc: addrConn.resetTransport failed to create client transport: connection error

Clair startup error grpc: addrConn.resetTransport failed to create client transport: connection error

我正在尝试使用 docker-compose 运行 clair docker 图像 quay.io/coreos/clair-git:latest。当启动容器时,它开始抛出此消息。没有得到名称 space 查询 curl -v http://localhost:6060/v1/namespaces 得到 404 的任何响应。

clair_1  | {"Event":"pagination key is empty, generating...","Level":"warning","Location":"config.go:110","Time":"2018-02-08 20:46:49.733074"}
clair_1  | {"Detectors":"apt-sources,lsb-release,os-release,redhat-release,alpine-release","Event":"Clair registered components","Level":"info","Listers":"apk,dpkg,rpm","Location":"main.go:103","Time":"2018-02-08 20:46:49.733721","Updaters":"alpine,debian,oracle,rhel,ubuntu"}
clair_1  | {"Event":"running database migrations","Level":"info","Location":"pgsql.go:270","Time":"2018-02-08 20:46:49.739997"}
clair_1  | {"Event":"database migration ran successfully","Level":"info","Location":"pgsql.go:277","Time":"2018-02-08 20:46:49.744277"}
clair_1  | {"Event":"starting grpc server","Level":"info","Location":"server.go:155","Time":"2018-02-08 20:46:49.744700","addr":"[::]:6060"}
clair_1  | {"Event":"grpc server is configured without client certificate authentication","Level":"warning","Location":"server.go:199","Time":"2018-02-08 20:46:49.745422"}
clair_1  | {"Event":"notifier service is disabled","Level":"info","Location":"notifier.go:76","Time":"2018-02-08 20:46:49.745800"}
clair_1  | 2018/02/08 20:46:49 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: network is unreachable"; Reconnecting to {[::]:6060 <nil>}
clair_1  | {"Event":"starting health API","Level":"info","Location":"api.go:62","Time":"2018-02-08 20:46:49.746259","addr":"0.0.0.0:6061"}
clair_1  | {"Event":"updater service started","Level":"info","Location":"updater.go:91","Time":"2018-02-08 20:46:49.746437","lock identifier":"911feae4-9a65-4317-9676-8c65f4404e76"}
clair_1  | 2018/02/08 20:46:50 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: network is unreachable"; Reconnecting to {[::]:6060 <nil>}
clair_1  | 2018/02/08 20:46:52 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: network is unreachable"; Reconnecting to {[::]:6060 <nil>}
clair_1  | 2018/02/08 20:46:55 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp [::]:6060: connect: network is unreachable"; Reconnecting to {[::]:6060 <nil>}

这是我的作品docker-compose.yml

version: '2'
services:
  clair:
    container_name: clair_clair
    image: quay.io/coreos/clair:v2.0.1
    restart: unless-stopped
    ports:
      - "6060-6061:6060-6061"
    volumes:
      - /tmp:/tmp
      - ./clair_config:/config
    command: [-config, /config/config.yaml]

试试 运行 稳定图像:quay.io/coreos/clair:v2.0.1 在我更改图像之前我发现了同样的错误。