Dimtar

Btsync Docker

Recommended Posts

Hi All.

 

Is anyone running this as a docker and if so what docker are you using?

I'm using one right now but its behind a few versions and with 1.4 out now its behind even more.

Share this post


Link to post
Share on other sites

Unless you can dock IE9, I don't think you'll be able to dock 1.4

 

You'll most likely use a Linux version of btsync in a Docker container...

Share this post


Link to post
Share on other sites

Short answer: Don't do it.

 

I've spent quite some time trying to get BitTorrent Sync running through Docker but your problem will be the UDP Multicast on port 3000 that BitTorrent Sync uses for LAN Discovery and the initial Handshake.

If you run < 2.0 BTSync (or only 1.4 Folders with separate swarms) you won't have many problems as you can just use the folder secrets to manually link the hosts but if you want to use a single 2.0 swarm you'll run into many problems.

 

If you want to give it a shot you should try to write the initial BTSync config with a completely exposed Docker container (--net host) that can listen to the UDP Multicast and then run a non-exposed container with a shared volume afterwards.

Keep in mind that you then need to manually enter the docker host to the "Use predefines hosts" list of your client as you won't find this daemon through LAN discovery.

(Not supported on phones yet)

 

You could try to get the Multicast working with Pipework (https://github.com/jpetazzo/pipework) but I decided to stick with the non-docker daemons on my hosts.

(If you try out pipework I would be very interested in the outcome!)

 

Here is my Dockerfile that I used to run BTSync with SSL:

https://github.com/ankoh/docker-btsync

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.