mirror of
https://github.com/rancher/rke.git
synced 2025-09-25 06:33:56 +00:00
Merge pull request #460 from HighwayofLife/waiting_for_container
Add host to wait for container check
This commit is contained in:
@@ -428,7 +428,7 @@ func checkPlaneTCPPortsFromHost(ctx context.Context, host *hosts.Host, portList
|
||||
if err := docker.DoRunContainer(ctx, host.DClient, imageCfg, hostCfg, PortCheckContainer, host.Address, "network", prsMap); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := docker.WaitForContainer(ctx, host.DClient, PortCheckContainer); err != nil {
|
||||
if err := docker.WaitForContainer(ctx, host.DClient, host.Address, PortCheckContainer); err != nil {
|
||||
return err
|
||||
}
|
||||
logs, err := docker.ReadContainerLogs(ctx, host.DClient, PortCheckContainer)
|
||||
|
Reference in New Issue
Block a user