summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 7cbe9afb4..987a37429 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -766,3 +766,14 @@ func WithHosts(hosts []string) CtrCreateOption {
return nil
}
}
+
+// WithConmonPidFile specifies the path to the file that receives the pid of conmon
+func WithConmonPidFile(path string) CtrCreateOption {
+ return func(ctr *Container) error {
+ if ctr.valid {
+ return ErrCtrFinalized
+ }
+ ctr.config.ConmonPidFile = path
+ return nil
+ }
+}