Merge pull request #30106 from runcom/fix-upgrade-from-1.10
daemon: honor default runtime when starting containers
This commit is contained in:
commit
f65212d5b9
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Contain
|
|||
|
||||
// Ensure a runtime has been assigned to this container
|
||||
if container.HostConfig.Runtime == "" {
|
||||
container.HostConfig.Runtime = stockRuntimeName
|
||||
container.HostConfig.Runtime = daemon.configStore.GetDefaultRuntimeName()
|
||||
container.ToDisk()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue