为什么docker图像列表为空?

Hat*_*sut 9 docker

我试图在我的docker实例中看到一个图像列表,但我不断得到一个空列表.

我跑

docker run busybox:latest echo hello
Run Code Online (Sandbox Code Playgroud)

它打印hello.我跑

docker images list --all
Run Code Online (Sandbox Code Playgroud)

它打印

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
Run Code Online (Sandbox Code Playgroud)

如果我尝试docker load -i myimage.tar列出,会发生同样的事情.为什么不显示任何图像?


docker version
Client:
 Version:      17.06.1-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   874a737
 Built:        Thu Aug 17 22:51:12 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.1-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   874a737
 Built:        Thu Aug 17 22:50:04 2017
 OS/Arch:      linux/amd64
 Experimental: false
Run Code Online (Sandbox Code Playgroud)

Nil*_*oct 19

尝试

docker images

我认为docker客户端正在尝试按令牌过滤list,因此找不到具有此名称标准的任何图像.

  • `docker image prune` 仅删除未使用的悬挂镜像:`docker image prune 命令允许您清理未使用的镜像。默认情况下,docker image prune 仅清理悬挂镜像。悬空图像是一种未标记且不被任何容器引用的图像。也许这不仅仅是修剪错误的行为。 (2认同)

O_K*_*O_K 15

docker images - 将列出所有图像。

docker image ls - 与“泊坞窗图像”相同

docker images ls - 这里“ls”充当过滤器。

  • 天哪,这真是糟糕的用户体验 (12认同)
  • 说真的,难以置信.. (4认同)

Dea*_*ada 6

另一个替代答案是进入 docker image ls