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设置了代理。

相关推荐
码哝小鱼2 小时前
docker stack常用命令
docker·容器·eureka
NorthCastle5 小时前
Centos7 上 卸载 docker
运维·docker·容器
kfepiza5 小时前
docker mysql 笔记250406
docker·容器
kfepiza5 小时前
`docker run --restart no,always,on-failure,unless-stopped` 笔记250406
docker·容器
写代码的小王吧8 小时前
【网络安全】安全的网络设计
网络·网络协议·tcp/ip·安全·web安全·网络安全·docker
美码师8 小时前
【保姆级教程】windows 安装 docker 全流程
docker·ai工具
Mryan20059 小时前
如何创建一个自行设计的nginx的Docker Image
运维·nginx·docker·容器
高hongyuan9 小时前
K8S集群搭建 龙蜥8.9 Dashboard部署(2025年四月最新)
docker·云原生·容器·kubernetes
码哝小鱼11 小时前
docker swarm常用命令
java·docker·eureka
gsls20080812 小时前
使用dockerbuildx在x86机器上构建arm版docker镜像
arm开发·docker·容器