运行Dockerfile报错:ERROR: failed to solve: process "/bin/sh -c sed -ri ‘s#archive.ubuntu.com|security.ubuntu.com#mirrors.aliyun.com#g’ /etc/apt/sources.list…did not complete successfully: exit code: 100
1、故障背景
docker build 使用Dockerfile打包tengine的镜像
2、报错提示
ERROR: failed to solve: process "/bin/sh -c sed -ri 's#archive.ubuntu.com|security.ubuntu.com#mirrors.aliyun.com#g' /etc/apt/sources.list && apt update && apt install -y libssl-dev make gcc pcre2-utils libpcre3-dev zlib1g-dev && cd /tmp/tengine-2.3.3/ && ./configure --prefix=/app/tools/tengine-2.3.3/ --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_mp4_module --with-stream --with-stream_ssl_module --with-stream_realip_module --add-module=modules/ngx_http_upstream_check_module/ --add-module=modules/ngx_http_upstream_session_sticky_module && make -j 1 && make install && ln -s /app/tools/tengine-2.3.3/sbin/nginx /sbin/ && ln -s /app/tools/tengine-2.3.3/ /app/tools/tengine && useradd -s /sbin/nologin nginx" did not complete successfully: exit code: 100
3、问题思路?
-
Dockerfile文件写错???–> 检查没有问题文章来源:https://www.toymoban.com/news/detail-516909.html
-
docker build命令执行问题???–>检查没有问题文章来源地址https://www.toymoban.com/news/detail-516909.html
4、解决方法
重启了docker服务,从新build后无报错
到了这里,关于运行Dockerfile报错:ERROR: failed to solve: process “/bin/sh -c sed -ri ‘s#archive.ubuntu.com...exit code的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!