Skip to content

[feature] support #pouch inspect -f "{{.GraphDriver.Data.UpperDir}}" $CID #1011

@Letty5411

Description

@Letty5411

Ⅰ. Issue Description

Need to get this field in pouch inspect container and Image

Ⅱ. Describe what happened

  • container
#pouch inspect -f "{{.GraphDriver.Data.UpperDir}}" TestInpectOk
<no value>
  • image
#pouch image inspect -f {{.GraphDriver.Data.RootDir}} registry.hub.docker.com/library/busybox:latest
Error: Template parsing error: template: :1:14: executing "" at <.GraphDriver.Data.Ro...>: can't evaluate field GraphDriver in type types.ImageInfo
#pouch image inspect -f {{.Image}} registry.hub.docker.com/library/busybox:latest
Error: Template parsing error: template: :1:2: executing "" at <.Image>: can't evaluate field Image in type types.ImageInfo
#pouch image inspect -f {{.GraphDriver.Data.MergedDir}}  registry.hub.docker.com/library/busybox:latest
Error: Template parsing error: template: :1:14: executing "" at <.GraphDriver.Data.Me...>: can't evaluate field GraphDriver in type types.ImageInfo

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • pouch version (use pouch version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    areas/testkind/featurepriority/P1this is high priority that all maintainers should stop to handle this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions