[英]Docker Build Hangs On ---> Running
newish to docker 对Docker更新
I have a docker file that I run docker build on, and it looks like this, where base is an image thats running microsoft/windowsservercore:10.0.14393.2312: 我有一个运行docker build的docker文件,它看起来像这样,其中base是运行microsoft / windowsservercore:10.0.14393.2312的映像:
FROM base
MAINTAINER Captain Adam Weitzman
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV NPM_VERSION=6.4.1 \
IONIC_VERSION=3.19.0 \
CORDOVA_VERSION=9.0.0 \
NUGET_VERSION=4.7.0;
RUN echo hello world
with output: 输出:
Step 1/5 : FROM base
---> 9dbf7f740334
Step 2/5 : MAINTAINER Captain Adam Weitzman
---> Using cache
---> c8f96e0797b9
Step 3/5 : SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
---> Using cache
---> 769be32b31a5
Step 4/5 : ENV NPM_VERSION=6.4.1 IONIC_VERSION=3.19.0 CORDOVA_VERSION=9.0.0 NUGET_VERSION=4.7.0;
---> Using cache
---> e2005178d304
Step 5/5 : RUN apt-get update
---> Running in 9ddc94cf3765
It seems to just hang on the running part, and won't finish building...why? 它似乎只是挂在运行的部分上,而无法完成构建...为什么? I also have a docker ignore file with ** in it...could that be a reason?
我也有一个带有**的码头工人忽略文件...这可能是原因吗?
运行并行以将更多内存分配给我的虚拟机
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.