2015-10-05 156 views
2

在一些手册,我发现下一个选项:泊坞窗图像层树

[email protected]:~$ sudo docker images --tree 
├─f502877df6a1 Virtual Size: 2.489 MB Tags: busybox-1-export:latest 
└─511136ea3c5a Virtual Size: 0 B 
    └─bf747efa0e2f Virtual Size: 0 B 
    └─48e5f45168b9 Virtual Size: 2.489 MB 
     └─769b9341d937 Virtual Size: 2.489 MB 
     └─227516d93162 Virtual Size: 2.489 MB Tags: busybox-1:latest 

但在我:

# docker -v 
Docker version 1.8.2, build 0a8c2e3 

我没有--tree选项images

# docker images --tree 
flag provided but not defined: --tree 
See 'docker images --help'. 

哪有我看到像这棵树的东西?

仅使用工具[dockviz][1]

回答

6

--tree选项已被删除。相反,你可以做(​​你提到):

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t 

欲了解更多信息,请参阅https://github.com/docker/docker/pull/5001