aboutsummaryrefslogtreecommitdiff
path: root/cmd
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 /cmd
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 'cmd')
-rw-r--r--cmd/podman/common/specgen.go3
-rw-r--r--cmd/podman/pods/create.go2
2 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index 96aeb08f4..2897dbf5a 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -401,6 +401,9 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
}
var command []string
+ // Include the command used to create the container.
+ s.ContainerCreateCommand = os.Args
+
// Build the command
// If we have an entry point, it goes first
if c.Entrypoint != nil {
diff --git a/cmd/podman/pods/create.go b/cmd/podman/pods/create.go
index 0e2a085fd..d57a2f2f7 100644
--- a/cmd/podman/pods/create.go
+++ b/cmd/podman/pods/create.go
@@ -149,6 +149,8 @@ func create(cmd *cobra.Command, args []string) error {
}
}
+ createOptions.CreateCommand = os.Args
+
if replace {
if err := replacePod(createOptions.Name); err != nil {
return err