mirror of
https://github.com/containers/podman.git
synced 2025-12-11 17:27:19 +08:00
start pod containers recursively
when using the play kube command, we need to make sure that containers with dependancies are started in proper order. in this case, the infra container must be started first. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@@ -153,7 +153,7 @@ func playKubeYAMLCmd(c *cliconfig.KubePlayValues) error {
|
|||||||
|
|
||||||
// start the containers
|
// start the containers
|
||||||
for _, ctr := range containers {
|
for _, ctr := range containers {
|
||||||
if err := ctr.Start(ctx, false); err != nil {
|
if err := ctr.Start(ctx, true); err != nil {
|
||||||
// Making this a hard failure here to avoid a mess
|
// Making this a hard failure here to avoid a mess
|
||||||
// the other containers are in created status
|
// the other containers are in created status
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user