简体   繁体   English

Docker 构建命令在 Google Cloud Shell 中挂起,没有任何消息

[英]Docker build command hangs in Google Cloud Shell without any message

I'm trying to build a Springboot webapp docker image in Google Cloud Shell.我正在尝试在 Google Cloud Shell 中构建 Springboot webapp docker 映像。 But the build command hangs without any message in the terminal .但是build 命令在终端中挂起而没有任何消息 Please help.请帮忙。

Dockerfile: Dockerfile:

FROM openjdk:8-jre-alpine
RUN mkdir /app
WORKDIR /app
ADD target/inventory-service-0.0.1-SNAPSHOT.jar app.jar
CMD java -jar app.jar

Build command hanging in Google Cloud Shell:构建命令挂在 Google Cloud Shell 中:

Docker 构建命令挂在 Google Cloud Shell 中

Finally the image got built after a long time.终于在很长一段时间后建立了形象。 But just wondering why it took more than 15 mins for just downloading 17.6 MB base image.但只是想知道为什么仅下载 17.6 MB 的基本映像就需要超过 15 分钟。 Anyway the issue got resolved just by taking more time.无论如何,只要花更多的时间,问题就得到了解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM