summaryrefslogtreecommitdiff
path: root/pkg/specgen/podspecgen.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-13 13:20:26 +0200
committerGitHub <noreply@github.com>2020-07-13 13:20:26 +0200
commite2a8e037d1c3a2176cd15493812bf165faea63f2 (patch)
treee01065d69937d364a355441fd7df7fc90c8f0f37 /pkg/specgen/podspecgen.go
parente38001f123a04f905a37bf038b2c983ebe350996 (diff)
parentc4627b5846ba16540dc61db91b059eb39555ec4a (diff)
downloadpodman-e2a8e037d1c3a2176cd15493812bf165faea63f2.tar.gz
podman-e2a8e037d1c3a2176cd15493812bf165faea63f2.tar.bz2
podman-e2a8e037d1c3a2176cd15493812bf165faea63f2.zip
Merge pull request #6896 from mheon/fix_remote_createcommand
Fix container and pod create commands for remote create
Diffstat (limited to 'pkg/specgen/podspecgen.go')
-rw-r--r--pkg/specgen/podspecgen.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/specgen/podspecgen.go b/pkg/specgen/podspecgen.go
index 600d27004..3c32ec365 100644
--- a/pkg/specgen/podspecgen.go
+++ b/pkg/specgen/podspecgen.go
@@ -49,6 +49,12 @@ type PodBasicConfig struct {
// Conflicts with NoInfra=true.
// Optional.
SharedNamespaces []string `json:"shared_namespaces,omitempty"`
+ // PodCreateCommand is the command used to create this pod.
+ // This will be shown in the output of Inspect() on the pod, and may
+ // also be used by some tools that wish to recreate the pod
+ // (e.g. `podman generate systemd --new`).
+ // Optional.
+ PodCreateCommand []string `json:"pod_create_command,omitempty"`
}
// PodNetworkConfig contains networking configuration for a pod.