1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

Add open port checks

This commit is contained in:
moelsayed
2018-01-16 20:29:09 +02:00
parent d351594098
commit c815ef5751
4 changed files with 276 additions and 0 deletions

View File

@@ -289,3 +289,8 @@ func ReadFileFromContainer(ctx context.Context, dClient *client.Client, hostname
}
return string(file), nil
}
func ReadContainerLogs(ctx context.Context, dClient *client.Client, containerName string) (io.ReadCloser, error) {
return dClient.ContainerLogs(ctx, containerName, types.ContainerLogsOptions{ShowStdout: true})
}