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

相关推荐
Sheffield2 小时前
Docker的跨主机服务与其对应的优缺点
linux·网络协议·docker
Sheffield10 小时前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
马艳泽10 小时前
win10下运行Start Broker and Proxy报错解决
docker
用户13573999256601 天前
Windows 从 0 搭建 WSL2 原生 AI 开发环境:Codex + Docker + VSCode
docker
vi_h1 天前
在 macOS 上通过 Docker 安装并运行 Ollama(详细可执行教程)
macos·docker·ollama
黑心老魔1 天前
通过 Docker 创建开发环境
docker·开发环境
冬奇Lab2 天前
一天一个开源项目(第41篇):Workout.cool - 现代化开源健身教练平台,训练计划与进度追踪
docker·开源·资讯
天朝八阿哥2 天前
使用Docker+vscode搭建离线的go开发调试环境
后端·docker·visual studio code
阿虎儿3 天前
Docker安装(非sudo用户可用)
docker
fetasty4 天前
rustfs加picgo图床搭建
docker