summaryrefslogtreecommitdiff
path: root/cmd/podman/common/specgen.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-05-08 14:45:32 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-05-08 14:45:32 -0400
commit26f48139cea99c24222367a576f56dcd7329943d (patch)
tree577e7ead230a4fec3a561088f9b7e8eb1bd307d6 /cmd/podman/common/specgen.go
parentaa74c3f09223107b85b6538a1ffe1e359ff51a65 (diff)
downloadpodman-26f48139cea99c24222367a576f56dcd7329943d.tar.gz
podman-26f48139cea99c24222367a576f56dcd7329943d.tar.bz2
podman-26f48139cea99c24222367a576f56dcd7329943d.zip
Add remaining annotations for `podman inspect`
This should finish support for `podman inspect` in APIv2. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman/common/specgen.go')
-rw-r--r--cmd/podman/common/specgen.go4
1 files changed, 4 insertions, 0 deletions
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