dockerfile报错:failed to solve: process

failed to solve: process "/bin/sh -c apt-get update && apt-get install -y libcurl4-openssl-dev libssl-dev supervisor unzip zlib1g-dev --no-install-recommends && docker-php-ext-install pdo_mysql && pecl channel-update pecl.php.net && pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-5.3.7 && docker-php-ext-enable redis && install-swoole.sh 4.8.13 --enable-http2 --enable-mysqlnd --enable-openssl --enable-sockets --enable-swoole-curl --enable-swoole-json" did not complete successfully: exit code: 100

替换ubuntu源

shell 复制代码
# RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list;
# RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list;
# RUN sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list;
# RUN sed -i "s/httpredir.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list;

RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list;
RUN sed -i "s/us.archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list;
RUN sed -i "s/cn.archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list;
RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list;
RUN sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list;
RUN sed -i "s/httpredir.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list;

之前改了源就好了,今天是代理导致的,解决方法是给ubuntu设置了代理。

相关推荐
Cyber4K22 分钟前
【Kubernetes专项】K8s集群1.31版本安装手册
linux·docker·云原生·容器·kubernetes
凯子坚持 c24 分钟前
基于Docker的SD-WAN组网方案:利用节点小宝实现服务器远程开发
服务器·docker·容器
不做菜鸟的网工2 小时前
使用docker部署Speedtest-X内网测试网站
docker
❀͜͡傀儡师3 小时前
docker部署Apache Answer 一款高效问答平台
docker·容器·apache
C_心欲无痕4 小时前
Docker 核心概念和安装
运维·docker·容器
Tummer83635 小时前
Docker迁移(N8N项目)
docker·容器
陈平安Java and C5 小时前
Docker Compose容器编排
docker
江湖有缘6 小时前
Docker一键部署docat:打造轻量级开源文档管理系统
docker·容器·开源
Tummer83636 小时前
Docker+n8n全流程配置和部署(N8N部署流程)
运维·docker·容器
Lam㊣6 小时前
Centos 7 系统docker pull 设置代理
docker·eureka·centos