今天打包基础镜像,执行xshell时,出现了错误returned a non-zero code: 1,网上搜索了下,说是由于镜像中已经安装了 docker-php-ext-install xxx 导致的,然后我就删除了这部分代码,重新打包果然可以了,这里记录一下
1、在Dokcefile同级目录下新建一个'pip.conf'目录,写入 [global] trusted-host=mirrors.aliyun.com index-url=http://mirrors.aliyun.com/pypi/simple 使用的是阿里云的Pip源 2、在Dockerfile里面再加入COPY命令把pip.conf复制一份到docker容器里面COPY pip.conf /etc/pip.conf 3、最后重新Build一次即可解决问题...
在构建 docker 执行 Dockerfile 中的RUN apt-get update时报错 returned a non-zero code: 100。其大致错误内容如下格式: Get:36 http://ftp.uni-stuttgart.de/debian sid/main amd64 Packages.diff/Index [27.9 kB]Get:36 http://ftp.uni-stuttgart.de/debian sid/main amd64 Packages.diff/Index [27.9...
port=443):Read timed out.The command'/bin/sh -c pip3 install tensorflow==1.8 -i https://pypi.tuna.tsinghua.edu.cn/simple/'r eturned a non-zero code:2
Docker poetry installl returned a non-zero code (ChunkedEncodingError)Ask Question Asked 3 years, 4 months ago Modified 2 years, 6 months ago Viewed 3k times Report this ad1 I get an issue where when docker-compose up the dependency often fails to install and an error message...
一次通过docker编译openresty报错curl returned a non-zero code: 6无法通过的问题处理,#执行编译docker的主配置[core01:/data]#more/usr/local/worksh/alisz-pixso-cs-gate-docker-build.sh#!/bin/bash##因编译依赖较多,编译时间不可控,需要手动处理,否则可能影响业务
> jpegtran-bin@3.0.6 postinstall /var/www/node_modules/image-webpack-loader/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin > node lib/install.js The command '/bin/sh -c npm install' returned a non-zero code: 1 ...
基于Jenkins 构建时,报错:’composer install’ returned a non-zero code: 255 的解决 由永夜·2018/05/03 1、Dockerfile 的代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 FROM registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php71:0.2.4...
main amd64 Packages [9,795 kB] Reading package lists... E: Could not open file /var/lib/apt/lists/http.debian.net_debian_dists_sid_main_binary-amd64_Packages.diff_Index - open (2: No such file or directory) The command '/bin/sh -c apt-get update' returned a non-zero code: ...
CouldnotlocateGemfileERROR:Service'webapp_setup'failed to build:Thecommand'/bin/sh -c bundle install'returned a non-zero code:10 Thank you! ruby-on-rails docker docker-compose dockerfile Share Copy link Improve this question Follow editedSep 26, 2020 at 12:46 ...