diff options
author | wuhua.ck <wuhua.ck@alibaba-inc.com> | 2021-04-15 22:36:50 +0800 |
---|---|---|
committer | chenkang <kongchen28@gmail.com> | 2021-04-16 13:43:14 +0800 |
commit | 8fbe06b8cbd8e3bc425d83130d562eb0c19f309b (patch) | |
tree | db52b4259b92ad6fb30bbe3ff07d01eb7ce208ef /pkg/specgen/generate | |
parent | 373f15f617db6731c58776c1766a4cf2c74b22b9 (diff) | |
download | podman-8fbe06b8cbd8e3bc425d83130d562eb0c19f309b.tar.gz podman-8fbe06b8cbd8e3bc425d83130d562eb0c19f309b.tar.bz2 podman-8fbe06b8cbd8e3bc425d83130d562eb0c19f309b.zip |
add flag "--pidfile" for podman create/run
Signed-off-by: chenkang <kongchen28@gmail.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r-- | pkg/specgen/generate/container_create.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go index ef9975021..13d4b4926 100644 --- a/pkg/specgen/generate/container_create.go +++ b/pkg/specgen/generate/container_create.go @@ -375,6 +375,9 @@ func createContainerOptions(ctx context.Context, rt *libpod.Runtime, s *specgen. } options = append(options, libpod.WithDependencyCtrs(deps)) } + if s.PidFile != "" { + options = append(options, libpod.WithPidFile(s.PidFile)) + } return options, nil } |