Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker container for running latest BTSync

Nearly entirely based of the tuxpoldo/btsync-deb btsync debian package, and the CenturyLinkLabs/ctlc-docker-btsync startup script.


docker build -t znetstar/btsync:latest .


A BTSync secret is needed to link containers over the network/internet

A secret will be generated the first time the container is run and saved in the "/btsync/btsync-secret" file. This file can be shared on multiple containers and multiple docker hosts by mounting the .btsync directory on the host machines, and copying the btsync-secret file

(mkdir ~/.btsync || true) &&
docker run --rm -it -v ~/.btsync:/btsync znetstar/btsync

Alternatively the secret can be set with an enviornment variable from docker

docker run --rm -it -v /btsync -e SECRET=... znetstar/btsync

Then run BTSync with

docker run -d -p 55555:55555 -v ~/.btsync:/btsync -v $MY_STORAGE_PATH:/data -e SECRET=... --name my_btsync znetstar/btsync

From another container you can access files in btsync using

--volumes-from my_btsync

For example:

docker run --rm -it --volumes-from my_btsync busybox:latest /bin/bash -c 'echo "foo" > /data/bar'

And on another machine with btsync running (using the same secret as above)

docker run --rm -it --volumes-from my_btsync busybox:latest /bin/bash -c 'cat /data/bar'

Foo should be printed as a result

Docker Pull Command
Source Repository

Comments (0)