docker-nxfilter icon indicating copy to clipboard operation
docker-nxfilter copied to clipboard

Local Volume with conf fails entrypoint.sh

Open jimusik opened this issue 4 years ago • 3 comments

Maybe I'm missing something but I'm running a Docker with the instructions:

docker run -dt \
  --name nxfilter \
  -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

The docker crashes when it tries to "cp -a /nxfilter/conf-default/. /nxfilter/conf/". My work around is to mount it with a modified "conf" folder - copy the files and change the volume. If I run the docker and get a bash prompt, there's no /nxfilter/conf-default loaded. Am I missing something?

Thanks.

p.s. for full clarity I'm running the docker on Synology through the web-gui - I have not tried to compose using an SSH as I am able to launch it successfully with my work around.

jimusik avatar Apr 22 '21 23:04 jimusik

Appears NXfilter no longer includes the conf-default directory. The offending lines have been removed from entrypoint.sh and image test passed. Please let me know how it works out for you.

cron410 avatar Apr 26 '21 17:04 cron410

@cron410 This did not seem to fix the issue. Now the conf folder fails to get the files from the zip folder. I'll see if I can reverse engineer what you did here but I hope it's as easy as just copying those files early in the process to the local volume. For now, my work around is to fill the conf file from the zip off the website and the process works. It's bombing with a null error related I must assume to not having files in the local conf folder.

jimusik avatar May 31 '21 20:05 jimusik

So I just ran your exact Docker Run command on a fresh Ubuntu Docker host and it created it's own config and had no issues. Since I do not have Synology at my disposal, there's not much I can do. I can help flesh out any ideas you have to fix it if that helps, I'm just not very familiar with Synology's version of Docker.

Edit: Here's a screenshot. image

cron410 avatar Jun 28 '21 15:06 cron410