gpt4 book ai didi

Windows 不支持特权模式

转载 作者:太空宇宙 更新时间:2023-11-03 16:53:11 25 4
gpt4 key购买 nike

我正在使用适用于 Linux 的 Windows 子系统。我在创建容器时遇到了问题。

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

告诉我这个错误

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

我已经激活了 “实验”:是的

最佳答案

如果您在安装 WSL 的同时安装了 Windows 版 Docker,并激活了“在 Windows 上启用 Linux 容器”(LCOW) 选项(如 nodeshift issue 127 中所示,这可以解释错误消息(见 moby#runconfig/hostconfig_windows.go 中)

按照“Setting Up Docker for Windows and WSL to Work Flawlessly”仔细检查您的设置

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 版本:越新越好。

关于Windows 不支持特权模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55056888/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com