Skip to content

See parental hierarchy from an image #33

@alevinetx

Description

@alevinetx

Assuming I have 2 images, base and compound, where compound is built upon base. If I run dockviz against base, I see the diagram down to compound. However, if I run dockviz against compound, the only item that appears is compound. Is there a way to force an upward tree from an image, to see its hierarchy?

Here is the current output of showing from base down, and then the output from compound3 (which doesn't show its parent hierarchy)

[jenkins@dev-ral0098 ~]$ dockviz images -l -d myorg/base:1.0.0-SNAPSHOT
digraph docker {
base -> "synth:288a4d" [style=invis]
"synth:288a4d" [label="133a02990407\nmyorg/base:1.0.0-SNAPSHOT",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"synth:288a4d" -> "synth:35a644"
"synth:35a644" [label="bc55eaecb80d\nmyorg/compound1:1.0.0-SNAPSHOT\nmyorg/compound1:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"synth:288a4d" -> "synth:e3dbd2"
"synth:e3dbd2" [label="f2ceff0af63e\nmyorg/compound2:1.0.0-SNAPSHOT\nmyorg/compound2:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"synth:288a4d" -> "synth:70f2b6"
"synth:70f2b6" [label="3980b2ad1f67\nmyorg/compound3:1.0.0-SNAPSHOT\nmyorg/compound3:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible]
}
[jenkins@dev-ral0098 ~]$ dockviz images -l -d myorg/compound3
digraph docker {
base -> "synth:70f2b6" [style=invis]
"synth:70f2b6" [label="3980b2ad1f67\nmyorg/compound3:1.0.0-SNAPSHOT\nmyorg/compound3:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible]

I hope this makes sense.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions