首页 > 解决方案 > “gcr.io/cloud-builders/docker”失败:步骤以非零状态退出:2

问题描述

我在 Google Cloud Platform 的 k8 集群中部署容器时遇到了一点问题。在我粘贴了在我的 Dockerfile 上编写的第 17 步(“RUN pecl install grpc”)期间发生的部分日志错误,但我不知道如何解决这个问题,有什么建议吗?

Step 17/52 : RUN pecl install grpc ---> Running in 226d47d5eca8 下载 grpc-1.38.0.tgz ...开始下载 grpc-1.38.0.tgz (4,469,171 bytes) ......... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ..................................................... ....................................................................................................... ..................................................... ..................................................... ......................完成:4,469,171 字节 2052 源文件,构建运行:phpize 配置:PHP Api 版本:20190902 Zend 模块 Api 编号:20190902 Zend 扩展Api No: 320190902 ear/temp/grpc/third_party/upb -I/tmp/pear/temp/grpc/third_party/xxhash -DHAVE_CONFIG_H -std=c++11 -fno-exceptions -fno-rtti -g -O2 -c /tmp/pear/temp/grpc/src/core/ext/transport/chttp2/transport/frame_ping.cc -o src/core/ext/transport/chttp2/transport/frame_ping.log++ -fvisibility=hidden -DOPENSSL_NO_ASM -D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DGRPC_ARES=0 -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -I。-I/tmp/pear/temp/grpc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuseranMGkn/grpc-1.38.0/include -I/tmp/pear/temp/pear-build-defaultuseranMGkn/grpc -1.38。0/main -I/tmp/pear/temp/grpc -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/ usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/tmp/pear/temp/grpc/include - I/tmp/pear/temp/grpc/src/core/ext/upb-生成-I/tmp/pear/temp/grpc/src/core/ext/upbdefs-生成-I/tmp/pear/temp/grpc/ src/php/ext/grpc -I/tmp/pear/temp/grpc/third_party/abseil-cpp -I/tmp/pear/temp/grpc/third_party/address_sorting/include -I/tmp/pear/temp/grpc/ third_party/boringssl-with-bazel/src/include -I/tmp/pear/temp/grpc/third_party/re2 -I/tmp/pear/temp/grpc/third_party/upb -I/tmp/pear/temp/grpc/第三方/xxhash -DHAVE_CONFIG_H -std=c++11 -fno-exceptions -fno-rtti -g -O2 -c /tmp/pear/temp/grpc/src/core/ext/transport/chttp2/transport/frame_ping。cc -fPIC -DPIC -o src/core/ext/transport/chttp2/transport/.libs/frame_ping.o ERROR ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero状态:2

太感谢了

标签: google-cloud-platformdockerfilegoogle-kubernetes-engine

解决方案


推荐阅读