docker golang API ContainerList失败并显示TLS

我已经在CoreOS上configuration了使用TLSvalidation的dockerd; Cli“泊坞窗图像”返回我有效的图像列表:存储标记图像ID创build大小busybox latest c75bebcdd211 3周前1.106 MB但在“去”代码尝试它:导出DOCKER_CERT_PATH =〜/ .docker图像,错误:= cli.ImageList (context.Background(),types.ImageListOptions {})返回空列表

下面是我的dockerconfiguration:客户端:版本:1.12.6 API版本:1.24 Go版本:go1.6.3 Git commit:d5236f0内置:星期二5月30日23:15:08 OS / Arch:linux / amd64

服务器:版本:1.12.6 API版本:1.24 Go版本:go1.6.3 Git commit:d5236f0内置:星期二5月30日23:15:08 OS / Arch:linux / amd64

你有一个图像列表,但你还没有创build任何容器,因此cli.ContainerList()返回空列表

你可能正在寻找的是cli.ImageList()

文档: https : //godoc.org/github.com/docker/engine-api/client#Client.ImageList