summaryrefslogtreecommitdiff
path: root/cmd/podman/shared/create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-19 19:36:52 +0100
committerGitHub <noreply@github.com>2019-12-19 19:36:52 +0100
commitdde48b44e725a3da959c627519e8110ec992a26e (patch)
treeb3c6ba6c51221548eee9584df5be10b6418445c9 /cmd/podman/shared/create.go
parent6b956dfd1f1071ceb40b403a9604da387979105a (diff)
parent437bc61f4e64d132736066330b18f327bffe48fa (diff)
downloadpodman-dde48b44e725a3da959c627519e8110ec992a26e.tar.gz
podman-dde48b44e725a3da959c627519e8110ec992a26e.tar.bz2
podman-dde48b44e725a3da959c627519e8110ec992a26e.zip
Merge pull request #4684 from vrothberg/systemd-improvements
container config: add CreateCommand
Diffstat (limited to 'cmd/podman/shared/create.go')
-rw-r--r--cmd/podman/shared/create.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go
index bb4e9cd12..c1c5db7cb 100644
--- a/cmd/podman/shared/create.go
+++ b/cmd/podman/shared/create.go
@@ -804,6 +804,10 @@ func CreateContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateC
return nil, err
}
+ // Set the CreateCommand explicitly. Some (future) consumers of libpod
+ // might not want to set it.
+ options = append(options, libpod.WithCreateCommand())
+
ctr, err := r.NewContainer(ctx, runtimeSpec, options...)
if err != nil {
return nil, err