Joining via command line or docker possible?

Hi,

I wonder if it is possible to use the command line to start syncthing and join an existing share (maybe by passing some parameters) without having to use the web UI at all?

My idea is to consifure syncthing in a docker container that would join a shared folder with other docker container instances on other servers. However, for doing so I would need to automate the joining and approval process via a Dockerfile where I can only use the command line options.

Best regards,

Sven

The GUI does this by using the REST interface; GET the config, modify it appropriately by adding the device and/or folder, then POST it back in. The other alternative is to edit the config.xml on disk and restart.

1 Like

Great, I’ll try this. Thanks a lot for the fast answer. :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.