I use NxFilter on a Raspberry Pi 4. I had done an update to 'Bullseye' it totally borked my NxFilter instance for some reason. I started over from scratch, and decided to run NxFilter this time on a docker instance on the Pi. I went to the github page referenced in the tutorials, installed Docker. I got some error just running the "transient container with persistent data volumes" docker commands:
docker run -dt \ --name nxfilter \ --restart unless-stopped \ -v nxfilter-conf:/nxfilter/conf \ -v nxfilter-log:/nxfilter/log \ -v nxfilter-db:/nxfilter/db \ -p 80:80 -p 443:443 -p 53:53/udp \ -p 19002-19004:19002-19004 \ packetworks/nxfilter-base:latest
Well, not an error, the container was perpetually in 'restarting' status. So, cloned the repo, copied the dockfile, and then tried to do the "docker image build" command. Here's the results:
Sending build context to Docker daemon 46.93MB
Step 1/14 : FROM 1science/java: oracle-jre-8
---> fb375357ddef
Step 2/14 : MAINTAINER Charles Gunzelman "cgunzelman@gmail.com"
---> Using cache
---> 723069c82d0a
Step 3/14 : LABEL org.label-schema.docker.dockerfile="/Dockerfile" org.label-schema.vcs-type="Git" org.label-schema.vcs-url="https://github.com/packetworks/docker-nxfilter"
---> Using cache
---> 43d392d4a40c
Step 4/14 : COPY --from=vimagick/sslsplit /usr/local/bin/sslsplit /usr/local/bin/
---> Using cache
---> 660e62c2a7e1
Step 5/14 : COPY entrypoint.sh url.txt /
---> Using cache
---> 2be94c65d7b6
Step 6/14 : RUN xargs </url.txt curl -o nxfilter.zip -s && mkdir /nxfilter && unzip nxfilter.zip -d /nxfilter && chmod +x /nxfilter/bin/startup.sh && rm -f nxfilter.zip
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in f2e0bfb3f47d
exec /bin/sh: exec format error
The command '/bin/sh -c xargs </url.txt curl -o nxfilter.zip -s && mkdir /nxfilter && unzip nxfilter.zip -d /nxfilter && chmod +x /nxfilter/bin/startup.sh && rm -f nxfilter.zip' returned a non-zero code: 1
The container runs but I cant do anything with it. I checked the "Dockerfile" and there doesn't seem to any issue. The entrypoint.sh script seemed odd but it has the shebang, it also looks like it commented things out, I tried to remove that and fix it but that didn't change anything:
#!/bin/sh
#if [ ! -f "/nxfilter/conf/cfg.default" ]; then
# cp - a /nxfilter/conf-default/. nxfilter/conf/
#fi
exec "$@"
There seems to be plenty of people getting the docker file to work proper. What is it that I need to do to get this running?
docker run -dt \ --name nxfilter \ --restart unless-stopped \ -v nxfilter-conf:/nxfilter/conf \ -v nxfilter-log:/nxfilter/log \ -v nxfilter-db:/nxfilter/db \ -p 80:80 -p 443:443 -p 53:53/udp \ -p 19002-19004:19002-19004 \ packetworks/nxfilter-base:latest
Well, not an error, the container was perpetually in 'restarting' status. So, cloned the repo, copied the dockfile, and then tried to do the "docker image build" command. Here's the results:
Sending build context to Docker daemon 46.93MB
Step 1/14 : FROM 1science/java: oracle-jre-8
---> fb375357ddef
Step 2/14 : MAINTAINER Charles Gunzelman "cgunzelman@gmail.com"
---> Using cache
---> 723069c82d0a
Step 3/14 : LABEL org.label-schema.docker.dockerfile="/Dockerfile" org.label-schema.vcs-type="Git" org.label-schema.vcs-url="https://github.com/packetworks/docker-nxfilter"
---> Using cache
---> 43d392d4a40c
Step 4/14 : COPY --from=vimagick/sslsplit /usr/local/bin/sslsplit /usr/local/bin/
---> Using cache
---> 660e62c2a7e1
Step 5/14 : COPY entrypoint.sh url.txt /
---> Using cache
---> 2be94c65d7b6
Step 6/14 : RUN xargs </url.txt curl -o nxfilter.zip -s && mkdir /nxfilter && unzip nxfilter.zip -d /nxfilter && chmod +x /nxfilter/bin/startup.sh && rm -f nxfilter.zip
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in f2e0bfb3f47d
exec /bin/sh: exec format error
The command '/bin/sh -c xargs </url.txt curl -o nxfilter.zip -s && mkdir /nxfilter && unzip nxfilter.zip -d /nxfilter && chmod +x /nxfilter/bin/startup.sh && rm -f nxfilter.zip' returned a non-zero code: 1
The container runs but I cant do anything with it. I checked the "Dockerfile" and there doesn't seem to any issue. The entrypoint.sh script seemed odd but it has the shebang, it also looks like it commented things out, I tried to remove that and fix it but that didn't change anything:
#!/bin/sh
#if [ ! -f "/nxfilter/conf/cfg.default" ]; then
# cp - a /nxfilter/conf-default/. nxfilter/conf/
#fi
exec "$@"
There seems to be plenty of people getting the docker file to work proper. What is it that I need to do to get this running?
Comment