错误:“无法使用前端dockerfile.v0解决:构建Docker镜像时无法创建LLB定义

gmxoilav  于 2023-06-29  发布在  Docker
关注(0)|答案(1)|浏览(181)

我得到这个错误

使用前端dockerfile.v0解决失败:无法创建LLB定义

当我试图构建这个Docker镜像时

**

FROM debian:jessie-slim
RUN apt-get update
RUN apt-get -y install iptables apt-utils iproute2 net-tools systemd telnet nano iputils-ping tcpdump inetutils-traceroute quagga isc-dhcp-server
RUN apt-get -f install
COPY  ./quagga /etc/quagga
COPY  ./dhcp/dhcpd.conf /etc/dhcp
COPY box_ext.sh /home/
RUN ["chmod", "+x", "/home/box_ext.sh"]
RUN mkdir /etc/scripts
ENV PATH "/etc/scripts:$PATH"
ENTRYPOINT /etc/init.d/quagga start && /bin/bash
```**
k2fxgqgv

k2fxgqgv1#

我在MacOS Ventura上使用Docker桌面版本4.9.1从Dockerfile构建Docker镜像时遇到了这个错误。错误:

failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head "https://registry-1.docker.io/v2/library/python/manifests/3.7-alpine": proxyconnect tcp: dial tcp: lookup http.docker.internal on <IP>: read udp <IP>:63475-><IP>:53: read: connection refused
make: *** [build-image] Error 1

最初,我以为这是一个连接问题,因为我在代理后面,但它只需要重新启动我的Docker桌面应用程序就可以了(点击右上角栏上的Docker图标>按下重新启动)。

相关问题