Update README.md

This commit is contained in:
Jonas Pedersen 2019-06-12 20:04:31 +02:00 committed by GitHub
parent f291954db7
commit 67cd8b4e37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,14 @@ Docker container for wsdd.py
## Running container ## Running container
### From command line ### From command line
docker run --net=host -e HOSTNAME=$(hostname) jonasped/wsdd `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. 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 ### From docker compose
A docker-compose.yml file could look like the one below. A docker-compose.yml file could look like the one below.
wsdd: ` wsdd:
image: "jonasped/wsdd" image: "jonasped/wsdd"
environment: environment:
- HOSTNAME=NETBIOS_NAME - HOSTNAME=NETBIOS_NAME
restart: unless-stopped restart: unless-stopped
network_mode: "host" network_mode: "host"`