code: func decodeHostConfig(src io.Reader) (*container.HostConfig, error) {
  	decoder := json.NewDecoder(src)
  
  	var w ContainerConfigWrapper
  	if err := decoder.Decode(&w); err != nil {
  		return nil, err
  	}
  
  	hc := w.getHostConfig()
  	return hc, nil
  }
docs: // DecodeHostConfig creates a HostConfig based on the specified Reader.
  // It assumes the content of the reader will be JSON, and decodes it.