summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/pod.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 7af78fa07..db87e60f2 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -129,6 +129,12 @@ func (p *Pod) CreatedTime() time.Time {
return p.config.CreatedTime
}
+// CreateCommand returns the os.Args of the process with which the pod has been
+// created.
+func (p *Pod) CreateCommand() []string {
+ return p.config.CreateCommand
+}
+
// CgroupParent returns the pod's CGroup parent
func (p *Pod) CgroupParent() string {
return p.config.CgroupParent