firecat53 / dockerfiles

Dockerfiles: Gollum, Jackett, Miniflux, Nginx/PHP-FPM, Plex, Privatebin, Qbittorrent, Radarr, Sabnzbd, Samba, SSH Socks Proxy server, Sonarr, Syncthing, Transmission, Unifi Controller.
MIT License
626 stars 93 forks source link

syncthing setup instruction does not work with docker #17

Closed code-surfer closed 5 years ago

code-surfer commented 5 years ago

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.

firecat53 commented 5 years ago

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.

firecat53 commented 5 years ago

Fixed with d6098d07e199761ca13115dcc13f682ab5612fa0