code: func getProbe(c *container.Container) probe {
  	config := c.Config.Healthcheck
  	if config == nil || len(config.Test) == 0 {
  		return nil
  	}
  	switch config.Test[0] {
  	case "CMD":
  		return &cmdProbe{shell: false}
  	case "CMD-SHELL":
  		return &cmdProbe{shell: true}
  	case "NONE":
  		return nil
  	default:
  		logrus.Warnf("Unknown healthcheck type '%s' (expected 'CMD') in container %s", config.Test[0], c.ID)
  		return nil
  	}
  }
docs: // Get a suitable probe implementation for the container's healthcheck configuration.
  // Nil will be returned if no healthcheck was configured or NONE was set.