docker/image.go
func (s *Image) Exists() bool {
	out, err := s.docker.Run("images", "--no-trunc")
	if err != nil {
		return false
	}

	return strings.Contains(out, s.name)
}
func (s *Image) Exists() bool {
	out, err := s.docker.Run("images", "--no-trunc")
	if err != nil {
		return false
	}

	return strings.Contains(out, s.name)
}
func ( s * Image ) Exists ( ) bool { out , err := s . docker . Run ( " " , " " ) if err != nil { return false } return strings . Contains ( out , s . name ) }
// Exists check whether current Docker image is available.
Exists check whether current Docker image is available .