From f291954db770331691202f16a34f39e0999dc950 Mon Sep 17 00:00:00 2001 From: Jonas Pedersen Date: Wed, 12 Jun 2019 10:22:12 +0200 Subject: [PATCH] Update with instructions on how to run the container. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 3d6ca82..040484a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # wsdd-docker Docker container for wsdd.py + +## 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"