code: func (rco RunContainerOptions) asDockerHostConfig() dockercontainer.HostConfig {
  	hostConfig := dockercontainer.HostConfig{
  		CapDrop:         rco.CapDrop,
  		PublishAllPorts: rco.TargetImage,
  		NetworkMode:     dockercontainer.NetworkMode(rco.NetworkMode),
  		Binds:           rco.Binds,
  		ExtraHosts:      rco.AddHost,
  		SecurityOpt:     rco.SecurityOpt,
  	}
  	if rco.CGroupLimits != nil {
  		hostConfig.Resources.Memory = rco.CGroupLimits.MemoryLimitBytes
  		hostConfig.Resources.MemorySwap = rco.CGroupLimits.MemorySwap
  		hostConfig.Resources.CgroupParent = rco.CGroupLimits.Parent
  	}
  	return hostConfig
  }
docs: // asDockerHostConfig converts a RunContainerOptions into a HostConfig
  // understood by the docker client