Sign inSign up

zydou/syncthing

By zydou

Updated 9 months ago

Docker image for Syncthing with command line interface. (daily build)

Image
1

1M+

zydou/syncthing repository overview

Syncthing with Command Line Interface (CLI)

Docker image for Syncthing with command line interface

Environment:
EnvironmentDefault value
PUID1000
PGID1000
Set up

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
Compose example:
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
CLI management:
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

Tag summary

Content type

Image

Digest

sha256:26ef6afef

Size

44.3 MB

Last updated

9 months ago

docker pull zydou/syncthing