2015-10-05 208 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