(containerID string)
| 299 | } |
| 300 | |
| 301 | func DockerInspect(containerID string) (container.InspectResponse, error) { |
| 302 | cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) |
| 303 | x.Check(err) |
| 304 | return cli.ContainerInspect(context.Background(), containerID) |
| 305 | } |
| 306 | |
| 307 | // CheckHealthContainer checks health of container and determines wheather container is ready to accept request |
| 308 | func CheckHealthContainer(socketAddrHttp string) error { |