mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Only start containers that are not running in pod start
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #557 Approved by: rhatdan
This commit is contained in:
@ -165,11 +165,13 @@ func startNode(node *containerNode, setError bool, ctrErrors map[string]error, c
|
||||
// Going to start the container, mark us as visited
|
||||
ctrsVisited[node.id] = true
|
||||
|
||||
// Start the container
|
||||
// Start the container (only if it is not running)
|
||||
ctrErrored := false
|
||||
if err := node.container.initAndStart(); err != nil {
|
||||
ctrErrored = true
|
||||
ctrErrors[node.id] = err
|
||||
if node.container.state.State != ContainerStateRunning {
|
||||
if err := node.container.initAndStart(); err != nil {
|
||||
ctrErrored = true
|
||||
ctrErrors[node.id] = err
|
||||
}
|
||||
}
|
||||
|
||||
// Recurse to anyone who depends on us and start them
|
||||
|
Reference in New Issue
Block a user