docker 提供了提供了多个指令可以让我以 文字的 方式了解 image
但是... 人都是懒惰的(至少我是这样啦),看图总比看文字容易
如果能把 image layer 以可视化(visualization)的方式呈现,应该可以更容易理解到底 层vs层 之间缠缠绵绵的关系
今天来看看 nate/dockviz container 以及 Graphviz ,来 trytry image layer visualization
brew install graphviz
.... 800年没有 brew install 东西了 光 update 就花了快十分钟,还以为 treminal 挂惹...
执行 nate/dockiv container 并提供 images --dot 作为参数,把 out put 输出到 dot(Graphviz) 中,以下指令中,让我们来产生一张 image layer structure 的图吧
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images --dot | dot -Tpng -o images-graph.png
可以看到 image 如何 一层一层的推演
其实也就是把 history 的东西图像化
关於这个 < missing > 的部分...
看起来 missing 似乎是有点在误导人,但实际上他并没有错误
there is no error as layers are no longer synonymous with a corresponding image and ID
layer 并不是 image_id 的同义词
the image ID appears to be associated with the uppermost layer, but in fact, the image ID doesn't 'belong' to any of the layers
list 中,每层的 image 似乎有关联,但实际上他们并不属於任一层
资料来源:https://windsock.io/explaining-docker-image-ids/
今天我们要实作如何利用Angular内提供的模组,从form表单取值。 FormModel: Bot...
在我写下这个标题的时候,突然感到一阵难过。 所以在文章的最前面,先好奇的问一下,你看到标题的感觉是一...
先捞出report server所有的报表名称 select * FROM [ReportServe...
前言 今天要来介绍,Typescript 特有的类型 Tuple 、 Enum,到底会是什麽,有趣的...
运算式(Expression) 在 Day11 - 陈述式与表达式 中有提到运算式为表达式,会回传一...