Merge pull request #41756 from thaJeztah/remove_old_upgrade_logic

daemon: remove migration code from docker 1.11 to 1.12
This commit is contained in:
Sebastiaan van Stijn 2021-02-22 21:59:24 +01:00 committed by GitHub
commit 841600fb2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -301,15 +301,6 @@ func (daemon *Daemon) restore() error {
mapLock.Unlock()
return
}
// The LogConfig.Type is empty if the container was created before docker 1.12 with default log driver.
// We should rewrite it to use the daemon defaults.
// Fixes https://github.com/docker/docker/issues/22536
if c.HostConfig.LogConfig.Type == "" {
if err := daemon.mergeAndVerifyLogConfig(&c.HostConfig.LogConfig); err != nil {
log.WithError(err).Error("failed to verify log config for container")
}
}
}(c)
}
group.Wait()