Windows不支持特权模式 [英] Windows does not support privileged mode

查看:1374
本文介绍了Windows不支持特权模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows Subsystem for Linux。并且我在创建容器时遇到问题。

I am using Windows Subsystem for Linux. and I have problems creating a container.

docker-compose run --rm --service-ports --use-aliases backend - bash

显示此错误

ERROR: Cannot create container for service backend: Windows does not support privileged mode

我已经激活了
experimental:是

I have activated "experimental": true

推荐答案

如果与WSL并行, Docker for Windows已安装,并且选项在Windows上启用Linux容器(LCOW)已激活(如 nodeshift问题127 ,可以解释该错误消息(在 moby#runco​​nfig / hostconfig_windows.go

If you have, in parallel of WSL, a Docker for Windows installed, with the option "Enable Linux Containers on Windows" (LCOW)" active (as in nodeshift issue 127, that could explained the error message (seen in moby#runconfig/hostconfig_windows.go)

仔细检查您的自我在 设置Docker之后Windows和WSL可以正常工作

Double-check your settings, following the "Setting Up Docker for Windows and WSL to Work Flawlessly"


虽然Docker守护程序无法直接在WSL上运行,但是您可以使用Docker CLI连接到通过Docker for Windows或您创建的任何其他VM运行的远程Docker守护程序。

While the Docker daemon cannot run directly on WSL, you can use the Docker CLI to connect to a remote Docker daemon running through Docker for Windows or any other VM you create.

还要检查您的Windows 10版本:越新越好。

Check also your Windows 10 version: the more recent, the better.

这篇关于Windows不支持特权模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆