Невозможно построить Docker изображение на Windows 10 - PullRequest
2 голосов
/ 01 апреля 2020

Windows 10 Pro 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

1 Ответ

1 голос
/ 03 апреля 2020

У меня была такая же проблема. Но когда я перешел на Linux контейнеры, это помогло. Если вы используете Linux контейнеры, вы увидите «Переключиться на Windows контейнеры ...», когда нажмете RMB на Docker. введите описание изображения здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...