gitee.com/bomy/docker.git@v1.13.1/runconfig/config_windows.go (about)

     1  package runconfig
     2  
     3  import (
     4  	"github.com/docker/docker/api/types/container"
     5  	networktypes "github.com/docker/docker/api/types/network"
     6  )
     7  
     8  // ContainerConfigWrapper is a Config wrapper that holds the container Config (portable)
     9  // and the corresponding HostConfig (non-portable).
    10  type ContainerConfigWrapper struct {
    11  	*container.Config
    12  	HostConfig       *container.HostConfig          `json:"HostConfig,omitempty"`
    13  	NetworkingConfig *networktypes.NetworkingConfig `json:"NetworkingConfig,omitempty"`
    14  }
    15  
    16  // getHostConfig gets the HostConfig of the Config.
    17  func (w *ContainerConfigWrapper) getHostConfig() *container.HostConfig {
    18  	return w.HostConfig
    19  }