diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-12-19 19:36:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 19:36:52 +0100 |
commit | dde48b44e725a3da959c627519e8110ec992a26e (patch) | |
tree | b3c6ba6c51221548eee9584df5be10b6418445c9 /cmd/podman/shared/create.go | |
parent | 6b956dfd1f1071ceb40b403a9604da387979105a (diff) | |
parent | 437bc61f4e64d132736066330b18f327bffe48fa (diff) | |
download | podman-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.go | 4 |
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 |