syncthing setup instruction does not work with docker
code-surfer opened this issue · comments
The command docker run --rm --volumes-from syncthing_config --user root syncthing chown -R syncthing:users /config
given in the README does not work. It only makes the syncthing command show its usage. According to the docker-run
man page, the ENTRYPOINT is purposely more difficult to override. When I add a --entrypoint=
option, it works.
% docker run --rm --volumes-from syncthing_config --user root --entrypoint= syncthing chown -R syncthing:users /config
% docker --version
Docker version 18.06.1-ce, build e68fc7a
The remainder of the instructions work, my dockerized syncthing is syncing fine with my other peers.
Ah, good catch. I'll go through and make sure I get that fixed for all the relevant Dockerfiles. Correct line should be:
docker run --rm --volumes-from syncthing_config --user root --entrypoint "/bin/sh" syncthing -c "chown -R syncthing:users /config"
Edit: although after playing with it a bit, I actually like just using --entrypoint=
like you did to reset the entrypoint to default.
Fixed with d6098d0