Resolve merge conflicts
Signed-off-by: Charity Kathure <ckathure@microsoft.com>
This commit is contained in:
parent
4be37b158b
commit
6fde5ab3f2
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
|
||||
"github.com/containerd/log"
|
||||
"github.com/docker/docker/daemon/config"
|
||||
"github.com/docker/docker/libcontainerd/supervisor"
|
||||
"github.com/docker/docker/pkg/system"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
|
|
@ -563,7 +563,7 @@ func (daemon *Daemon) initLibcontainerd(ctx context.Context, cfg *config.Config)
|
|||
|
||||
rt := cfg.DefaultRuntime
|
||||
if rt == "" {
|
||||
if daemon.configStore.ContainerdAddr == "" {
|
||||
if cfg.ContainerdAddr == "" {
|
||||
rt = config.WindowsV1RuntimeName
|
||||
} else {
|
||||
rt = config.WindowsV2RuntimeName
|
||||
|
@ -580,7 +580,7 @@ func (daemon *Daemon) initLibcontainerd(ctx context.Context, cfg *config.Config)
|
|||
daemon,
|
||||
)
|
||||
case config.WindowsV2RuntimeName:
|
||||
if daemon.configStore.ContainerdAddr == "" {
|
||||
if cfg.ContainerdAddr == "" {
|
||||
return fmt.Errorf("cannot use the specified runtime %q without containerd", rt)
|
||||
}
|
||||
daemon.containerd, err = remote.NewClient(
|
||||
|
|
Loading…
Add table
Reference in a new issue