mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
Remove not needed call to container.readHostConfig()
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
+4
-2
@@ -178,11 +178,13 @@ func (container *Container) readHostConfig() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
data, err := ioutil.ReadFile(pth)
|
||||
f, err := os.Open(pth)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return json.Unmarshal(data, container.hostConfig)
|
||||
defer f.Close()
|
||||
|
||||
return json.NewDecoder(f).Decode(&container.hostConfig)
|
||||
}
|
||||
|
||||
func (container *Container) WriteHostConfig() error {
|
||||
|
||||
@@ -194,8 +194,6 @@ func (daemon *Daemon) load(id string) (*Container, error) {
|
||||
return container, fmt.Errorf("Container %s is stored at %s", container.ID, id)
|
||||
}
|
||||
|
||||
container.readHostConfig()
|
||||
|
||||
return container, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user