From 26f48139cea99c24222367a576f56dcd7329943d Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Fri, 8 May 2020 14:45:32 -0400 Subject: Add remaining annotations for `podman inspect` This should finish support for `podman inspect` in APIv2. Signed-off-by: Matthew Heon --- cmd/podman/common/specgen.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/common') diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go index ff7c39de2..664e66df8 100644 --- a/cmd/podman/common/specgen.go +++ b/cmd/podman/common/specgen.go @@ -519,6 +519,10 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string } s.Sysctl = sysmap + if c.CIDFile != "" { + s.Annotations[define.InspectAnnotationCIDFile] = c.CIDFile + } + for _, opt := range c.SecurityOpt { if opt == "no-new-privileges" { s.ContainerSecurityConfig.NoNewPrivileges = true -- cgit v1.2.3-54-g00ecf