Failure Building Docker Image - No Internet Access
Hi Firewalla,
I am trying to build an arm64 Docker Image from the following Docker Repository "zerotier/zerotier".
The reason for this is that only "amd64" images are pre-built and as the Firewalla Purple is "arm64" architecture I must build a custom image.
Therefore I am running the followiwng command from the Firewalla Purple SSH Console,
sudo docker build -f Dockerfile.release --rm -t zerotier --build-arg VERSION=1.8.4 --build-arg ARCH=arm64 .
This build is based on a base debian image "debian:buster", but when running the build command with the following Dockerfile.release file(see below), the Docker container is unable to connect to the Internet when fetching the base Debian image.
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
Dockerfile.release file
##############
# vim: ft=dockerfile
FROM debian:buster as stage
ARG PACKAGE_BASEURL=https://download.zerotier.com/debian/buster/pool/main/z/zerotier-one/
ARG ARCH=amd64
ARG VERSION=1.87
RUN apt-get update -qq && apt-get install curl -y
RUN curl -sSL -o zerotier-one.deb "${PACKAGE_BASEURL}/zerotier-one_${VERSION}_${ARCH}.deb"
FROM debian:buster
RUN apt-get update -qq && apt-get install openssl libssl1.1 -y
COPY --from=stage zerotier-one.deb .
RUN dpkg -i zerotier-one.deb && rm -f zerotier-one.deb
RUN echo "${VERSION}" >/etc/zerotier-version
RUN rm -rf /var/lib/zerotier-one
COPY entrypoint.sh.release /entrypoint.sh
RUN chmod 755 /entrypoint.sh
HEALTHCHECK --interval=1s CMD bash /healthcheck.sh
CMD []
ENTRYPOINT ["/entrypoint.sh"]
####################
Can you advise why the Docker Container is not able to make a successful call to the internet, when the build is executed from the Firewalla Purple SSH Console.
Any help would be appreciated.
Thanks
Ciaran
-
Hi Firewalla,
I am running the Firewalla Purple pretty much standard.
I am using the Cloudflare DNS servers 1.1.1.1 and 1.0.0.1. I have also checked the resolution from the SSH console by performing the following command,
curl ipinfo.io
Which successfully returns the JSON payload result.
The DNS issue or(internet access issue) appears to only be an issue when its running from the Docker context within the Docker build command.
Is anything additional needed to allow Docker context to access the internet?.
Ciaran
-
I don't think you will need to do anything special to access the internet ... for example, see this https://help.firewalla.com/hc/en-us/articles/360053441074-Guide-How-to-run-UniFi-Controller-on-the-Firewalla-Gold-or-Purple-
Unless the docker builder itself needs something special, you will have to ask the originator.
Please sign in to leave a comment.
Comments
6 comments