code: func (sc *sandboxCreate) parseOptions() []libnetwork.SandboxOption {
  	var setFctList []libnetwork.SandboxOption
  	if sc.HostName != "" {
  		setFctList = append(setFctList, libnetwork.OptionHostname(sc.HostName))
  	}
  	if sc.DomainName != "" {
  		setFctList = append(setFctList, libnetwork.OptionDomainname(sc.DomainName))
  	}
  	if sc.HostsPath != "" {
  		setFctList = append(setFctList, libnetwork.OptionHostsPath(sc.HostsPath))
  	}
  	if sc.ResolvConfPath != "" {
  		setFctList = append(setFctList, libnetwork.OptionResolvConfPath(sc.ResolvConfPath))
  	}
  	if sc.UseDefaultSandbox {
  		setFctList = append(setFctList, libnetwork.OptionUseDefaultSandbox())
  	}
  	if sc.UseExternalKey {
  		setFctList = append(setFctList, libnetwork.OptionUseExternalKey())
  	}
  	if sc.DNS != nil {
  		for _, d := range sc.DNS {
  			setFctList = append(setFctList, libnetwork.OptionDNS(d))
  		}
  	}
  	if sc.ExtraHosts != nil {
  		for _, e := range sc.ExtraHosts {
  			setFctList = append(setFctList, libnetwork.OptionExtraHost(e.Name, e.Address))
  		}
  	}
  	if sc.ExposedPorts != nil {
  		setFctList = append(setFctList, libnetwork.OptionExposedPorts(sc.ExposedPorts))
  	}
  	if sc.PortMapping != nil {
  		setFctList = append(setFctList, libnetwork.OptionPortMapping(sc.PortMapping))
  	}
  	return setFctList
  }
docs: /****************
   Options Parsers
  *****************/