diff --git a/pool/pool.go b/pool/pool.go index 4f09a1ac..216f178f 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -1699,7 +1699,8 @@ func waitForContainerRemoved(ctx context.Context, cli client, cnrID *cid.ID, wai return waitFor(ctx, waitParams, func(ctx context.Context) bool { _, err := cli.containerGet(ctx, prm) - return sdkClient.IsErrContainerNotFound(err) + return sdkClient.IsErrContainerNotFound(err) || + err != nil && strings.Contains(err.Error(), "not found") }) }