summaryrefslogtreecommitdiff
path: root/pkg/specgen
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-04-27 14:23:23 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-04-29 07:22:18 +0200
commitb2414b580e236e011d60028e645ab41096035ee3 (patch)
tree7e639a4c40d728c3be4e65e2870f785ced13665e /pkg/specgen
parentbf4efc1953467907ae7d75d5f3ef3cd41505ee24 (diff)
downloadpodman-b2414b580e236e011d60028e645ab41096035ee3.tar.gz
podman-b2414b580e236e011d60028e645ab41096035ee3.tar.bz2
podman-b2414b580e236e011d60028e645ab41096035ee3.zip
generate systemd
Implement `podman generate systemd` for Podman v2 and enable associated tests. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/specgen')
-rw-r--r--pkg/specgen/generate/container_create.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go
index bb84f0618..01ddcf9c8 100644
--- a/pkg/specgen/generate/container_create.go
+++ b/pkg/specgen/generate/container_create.go
@@ -76,6 +76,7 @@ func MakeContainer(ctx context.Context, rt *libpod.Runtime, s *specgen.SpecGener
}
options := []libpod.CtrCreateOption{}
+ options = append(options, libpod.WithCreateCommand())
var newImage *image.Image
if s.Rootfs != "" {