无法在Windows 10上构建Docker映像

时间:2020-04-01 09:42:51

标签: linux windows docker

Windows 10 Pro 1909
Docker 2.2.0.4(43472)

Dockerfile像这样启动:

FROM debian:stable-20191118

这是唯一起作用的部分(或其他任何ubuntu:18.04之类的Linux)
任何下一行,就像其中任何一个

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

0 个答案:

没有答案