Docker image for Syncthing with command line interface. (daily build)
1M+
Docker image for Syncthing with command line interface
| Environment | Default value |
|---|---|
| PUID | 1000 |
| PGID | 1000 |
Best practices:
# create a ROOT folder for syncthing
mkdir -p ~/Sync
# create subfolders you want to synchronize under ROOT folder
mkdir -p ~/Sync/folderA
mkdir -p ~/Sync/folderB
# Then start the syncthing service
docker run -d --restart=always --name syncthing -p 8384:8384 -p 22000:22000 -p 21027:21027/udp -v ~/Sync:/var/syncthing zydou/syncthing
# control syncthing from command line
docker exec -u $(id -u ${USER}):$(id -g ${USER}) syncthing stman --help
version: "3"
services:
syncthing:
image: zydou/syncthing
container_name: syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
- ~/Sync:/var/syncthing
ports:
- 8384:8384
- 22000:22000
- 21027:21027/udp
restart: always
docker exec -u $(id -u ${USER}):$(id -g ${USER}) syncthing stman --help
set alias in ~/.bashrc
echo 'alias stman="docker exec -u $(id -u ${USER}):$(id -g ${USER}) syncthing stman"' >> ~/.bashrc
Content type
Image
Digest
sha256:26ef6afef…
Size
44.3 MB
Last updated
9 months ago
docker pull zydou/syncthing