运行Dockerfile报错:ERROR: failed to solve: process “/bin/sh -c sed -ri ‘s#archive.ubuntu.com...exit code
运行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文件写错???–> 检查没有问题
docker build命令执行问题???–>检查没有问题
4、解决方法
重启了docker服务,从新build后无报错 # ubuntu # linux # docker
所有评论(0)