diff options
author | Boaz Shuster <boaz.shuster.github@gmail.com> | 2021-11-08 16:56:06 +0200 |
---|---|---|
committer | Boaz Shuster <boaz.shuster.github@gmail.com> | 2021-11-09 11:54:18 +0200 |
commit | 6ee3b33d3825177033763e51f756209102e0a309 (patch) | |
tree | b456161925158c25c9413e6094c3ec684070376c /pkg/systemd/generate | |
parent | 15eb016017e39c7370d169790e15744746d54cd7 (diff) | |
download | podman-6ee3b33d3825177033763e51f756209102e0a309.tar.gz podman-6ee3b33d3825177033763e51f756209102e0a309.tar.bz2 podman-6ee3b33d3825177033763e51f756209102e0a309.zip |
change from run to create in 250-systemd.bats
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'pkg/systemd/generate')
-rw-r--r-- | pkg/systemd/generate/containers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/systemd/generate/containers.go b/pkg/systemd/generate/containers.go index c0a49c614..a4b18ec88 100644 --- a/pkg/systemd/generate/containers.go +++ b/pkg/systemd/generate/containers.go @@ -394,6 +394,10 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst info.IdentifySpecifier = true runIx := -1 nameIx := -1 + // Add systemd identify specifier next to the name value + // to set a name to the container according to the parameters passed to systemd. + // In case no --name set for that container, use ServiceName specified + // in the containerInfo struct. for argIx, arg := range startCommand { if arg == "run" { runIx = argIx |