gpt4 book ai didi

linux - 无法在Windows 10上构建Docker镜像

转载 作者:行者123 更新时间:2023-12-02 09:37:42 25 4
gpt4 key购买 nike

Windows 10专业版1909
Docker 2.2.0.4(43472)

Dockerfile开始如下:

FROM debian:stable-20191118

那是唯一起作用的部分(或其他任何Linux,例如 ubuntu:18.04)
任何下一行,例如以下任何一项
RUN DEBIAN_FRONTEND=noninteractive
RUN LC_ALL=en_US.UTF-8
RUN apt-get update -y && apt-get install -y nginx

得到相同的错误:
The command '/bin/sh -c (insert any of the commands above)' returned a non-zero code: 4294967295:
failed to shutdown container: container ad12191abf0849d5e49bb5dc0570d6ba8eaf2cc5b4e7d77127ed381901fcb672
encountered an error during hcsshim::System::waitBackground: failure in a Windows system call:
The virtual machine or container with the specified identifier is not running. (0xc0370110):
subsequent terminate failed container ad12191abf0849d5e49bb5dc0570d6ba8eaf2cc5b4e7d77127ed381901fcb672
encountered an error during hcsshim::System::waitBackground: failure in a Windows system call:
The virtual machine or container with the specified identifier is not running. (0xc0370110)

命令是
docker build -f Dockerfile . --no-cache

最佳答案

我有同样的问题。但是,当我切换到Linux容器时,它有所帮助。
如果您使用Linux容器,则在Docker上按RMB时将看到“切换到Windows容器...”。

关于linux - 无法在Windows 10上构建Docker镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60967930/

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