diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2021-08-05 13:52:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 13:52:15 +0000 |
commit | 1f0a24437d71f8fe2b2233a428202afcfe513666 (patch) | |
tree | e17f57dce6bf61d38a74fc6b8f011bffbb4082fa /libpod/container_graph.go | |
parent | 117583c293713f2baa920c4035e820ad59fe6622 (diff) | |
parent | 3c3fa6fac4d0f8e89181ea2d4e1fe0318d24b6f4 (diff) | |
download | podman-1f0a24437d71f8fe2b2233a428202afcfe513666.tar.gz podman-1f0a24437d71f8fe2b2233a428202afcfe513666.tar.bz2 podman-1f0a24437d71f8fe2b2233a428202afcfe513666.zip |
Merge pull request #11011 from baude/initcontainers
implement init containers in podman
Diffstat (limited to 'libpod/container_graph.go')
-rw-r--r-- | libpod/container_graph.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_graph.go b/libpod/container_graph.go index 3ae7cfbc7..32fb264f1 100644 --- a/libpod/container_graph.go +++ b/libpod/container_graph.go @@ -259,7 +259,7 @@ func startNode(ctx context.Context, node *containerNode, setError bool, ctrError } // Start the container (only if it is not running) - if !ctrErrored { + if !ctrErrored && len(node.container.config.InitContainerType) < 1 { if !restart && node.container.state.State != define.ContainerStateRunning { if err := node.container.initAndStart(ctx); err != nil { ctrErrored = true |