wait for test cluster to be ready (all machines up)

This commit is contained in:
Pavel Sviderski committed 2024-12-05 13:45:46 +10:00
1 parent a40fd613e8
commit 8bddbec7bd
5 files changed
+72 -28

No files matched your search

+1
View File
@@ -471,6 +471,7 @@ func (cli *Client) RemoveService(ctx context.Context, id string) error {
return
}
removeCtx := metadata.NewOutgoingContext(ctx, metadata.Pairs("machines", machineIP))
// TODO: gracefully stop the container before removing it without force.
err := cli.RemoveContainer(removeCtx, mc.Container.ID, container.RemoveOptions{Force: true})
if err != nil {
if !dockerclient.IsErrNotFound(err) {