gpt4 book ai didi

windows - Docker Desktop 混合模式不再起作用

转载 作者:行者123 更新时间:2023-12-02 19:00:29 25 4
gpt4 key购买 nike

我正在尝试使用 Docker Desktop 运行 linux 和 windows 镜像。该方法在此处描述:
https://devblogs.microsoft.com/premier-developer/mixing-windows-and-linux-containers-with-docker-compose/

3 个月前它工作得很好,但有一些限制,但是当我今天再次尝试时,我没有运气。
我切换到 Windows 容器并启用了实验性功能。但是当我尝试使用 linux 镜像时,我遇到了这个错误:

docker run -it mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
C:\Program Files\Docker\Docker\resources\bin\docker.exe: image operating system "linux" cannot be used on this platform.

可能是什么问题?此功能是否已从 docker 桌面删除?找不到有关它的信息。

我目前的设置是:
  • Windows 10 企业版 1809(操作系统内部版本 17763.1098)
  • Docker桌面社区2.2.0.4(43472)稳定 channel
  • 引擎:19.03.8
  • 撰写:1.25.4
  • Kubernetes:v1.15.5
  • 公证人:0.6.1
  • 凭证助手:0.6.3
  • 最佳答案

    看起来开关“启用实验功能”在当前版本中有错误,并没有真正打开这些功能。当我直接将实验功能添加到守护程序配置时:

    {
    "registry-mirrors": [],
    "insecure-registries": [],
    "debug": true,
    "experimental": true
    }

    混合的 linux 和 windows 容器开始像以前一样工作。

    关于windows - Docker Desktop 混合模式不再起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60847253/

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