code: func (d *stiDocker) IsImageOnBuild(name string) bool {
  	onbuild, err := d.GetOnBuild(name)
  	return err == nil && len(onbuild) > 0
  }
docs: // IsImageOnBuild provides information about whether the Docker image has
  // OnBuild instruction recorded in the Image Config.