Skip to content

Commit efe7f76

Browse files
committed
Added docs on running in docker.
1 parent 327063b commit efe7f76

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,22 @@ Simple project that demonstrates a Modbus device.
44
# Limitations
55
Initially, the simulator only supports simulating a TCP device.
66

7+
# Docker
8+
9+
To run in docker:
10+
11+
`docker run -it --rm -p 502:502 --name devicesim nmodbus/devicesim`
12+
13+
To specify the port:
14+
15+
`docker run -it --rm -p 1000:1000 -e "DEVICE__PORT=1000" --name devicesim nmodbus/devicesim`
16+
17+
# Environment Variables
18+
19+
|Option|Default Value|
20+
|---|---|
21+
|DEVICE__ADDRESS | |
22+
|DEVICE__PORT | 502 |
23+
|DEVICE__UNITID| 1 |
24+
|DEVICE__VERBOSE| false |
725

0 commit comments

Comments
 (0)