mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f6ed590596
Signed-off-by: John Howard <jhoward@microsoft.com>
13 lines
400 B
Go
13 lines
400 B
Go
package runconfig
|
|
|
|
// ContainerConfigWrapper is a Config wrapper that hold the container Config (portable)
|
|
// and the corresponding HostConfig (non-portable).
|
|
type ContainerConfigWrapper struct {
|
|
*Config
|
|
HostConfig *HostConfig `json:"HostConfig,omitempty"`
|
|
}
|
|
|
|
// getHostConfig gets the HostConfig of the Config.
|
|
func (w *ContainerConfigWrapper) getHostConfig() *HostConfig {
|
|
return w.HostConfig
|
|
}
|