Docker container for wsdd.py
Find a file
2025-01-16 21:15:11 +08:00
docker-cmd.sh Merge branch 'master' into master 2022-06-07 21:25:05 +02:00
Dockerfile Aggiorna Dockerfile 2025-01-16 21:15:11 +08:00
LICENSE Initial commit 2019-06-11 19:27:14 +02:00
README.md Aggiorna README.md 2025-01-16 15:39:22 +08:00
wsdd.py improved with multi hosts 2025-01-16 19:27:48 +08:00

FABIO note

clonare git ed entrare nel folder

git clone https://forgit.patachina.duckdns.org/Fabio/wsdd-docker.git
cd wsdd-docker

creare l'immagine docker wsdd con il comando

sudo docker build -t wsdd .

per far partire il docker usare il seguente docker compose in HOSTNAME= mettere il nome che si vuole visualizzare nella rete

services:
  wsdd:
    image: wsdd:latest    
    network_mode: host
    environment:
      - 'HOSTNAME=OrangePiSMB'
    restart: unless-stopped

original git https://github.com/JonasPed/wsdd-docker

wsdd-docker

Docker image for wsdd.py.

wsdd implements a Web Service Discovery host daemon. This enables (Samba) hosts, like your local NAS device or Linux server, to be found by Web Service Discovery Clients like Windows.

Supported environment variables

HOSTNAME: Samba Netbios name to report.

WORKGROUP: Workgroup name

DOMAIN: Report being a member of an AD DOMAIN. Disables WORKGROUP if set.

Alternatively, you can pass all desired wsdd arguments in the environment variable WSDD_ARGS. In this case, the arguments are passed as-is and all other environment variables are ignored.

Running container

From command line

docker run --net=host -e HOSTNAME=$(hostname) jonasped/wsdd

It is important that the container is run with the argument --net=host and that the environment variabel HOSTNAME is set to the same value as your Samba netbios name. Samba netbios name defaults to the hostname.

From docker compose

A docker-compose.yml file could look like the one below.

        wsdd:
                image: "jonasped/wsdd"
                environment:
                        - HOSTNAME=NETBIOS_NAME
                restart: unless-stopped
                network_mode: "host"