mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove HostConfig,SetHostConfig from daemon.container
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
parent
f39987afe8
commit
f95333010e
2 changed files with 1 additions and 9 deletions
|
@ -677,14 +677,6 @@ func (container *Container) Exposes(p nat.Port) bool {
|
|||
return exists
|
||||
}
|
||||
|
||||
func (container *Container) HostConfig() *runconfig.HostConfig {
|
||||
return container.hostConfig
|
||||
}
|
||||
|
||||
func (container *Container) SetHostConfig(hostConfig *runconfig.HostConfig) {
|
||||
container.hostConfig = hostConfig
|
||||
}
|
||||
|
||||
func (container *Container) getLogConfig() runconfig.LogConfig {
|
||||
cfg := container.hostConfig.LogConfig
|
||||
if cfg.Type != "" || len(cfg.Config) > 0 { // container has log driver configured
|
||||
|
|
|
@ -154,7 +154,7 @@ func (daemon *Daemon) Containers(config *ContainersConfig) ([]*types.Container,
|
|||
}
|
||||
newC.Created = int(container.Created.Unix())
|
||||
newC.Status = container.State.String()
|
||||
newC.HostConfig.NetworkMode = string(container.HostConfig().NetworkMode)
|
||||
newC.HostConfig.NetworkMode = string(container.hostConfig.NetworkMode)
|
||||
|
||||
newC.Ports = []types.Port{}
|
||||
for port, bindings := range container.NetworkSettings.Ports {
|
||||
|
|
Loading…
Add table
Reference in a new issue