// PullImageIfNecessary Pull the specified image if it doesn't already exist
PullImageIfNecessary Pull the specified image if it doesn't already exist
// PullImageIfNecessary Pull the specified image if it doesn ' t already exist
func PullImageIfNecessary(dockerClient *client.Client, image string) error {
	ctx := context.Background()
	_, _, err := dockerClient.ImageInspectWithRaw(ctx, image, false)
	if err != nil {
		pullImage(ctx, dockerClient, image)
	}
	return nil
}
func PullImageIfNecessary ( dockerClient * client . Client , image string ) error { ctx := context . Background ( ) _ , _ , err := dockerClient . ImageInspectWithRaw ( ctx , image , false ) if err != nil { pullImage ( ctx , dockerClient , image ) } return nil }
PullImageIfNecessary Pull the specified image if it doesn't already exist
PullImageIfNecessary Pull the specified image if it doesn ' t already exist