... | @@ -116,3 +116,31 @@ Hopefully this will run fine. If you have made any mistakes you may have to stop |
... | @@ -116,3 +116,31 @@ Hopefully this will run fine. If you have made any mistakes you may have to stop |
|
|
|
|
|
## Stop docker container
|
|
## Stop docker container
|
|
|
|
|
|
|
|
In another terminal:
|
|
|
|
|
|
|
|
`#docker container ls`
|
|
|
|
|
|
|
|
Take the name at the end of the line
|
|
|
|
|
|
|
|
`#docker container stop <name>`
|
|
|
|
|
|
|
|
`#docker container rm <name>`
|
|
|
|
|
|
|
|
## In the first terminal
|
|
|
|
|
|
|
|
Start FreeDMR detached (no console)
|
|
|
|
|
|
|
|
docker run --read-only -d -v "/etc/freedmr/freedmr.cfg:/opt/freedmr/freedmr.cfg" -v "/var/log/freedmr/freedmr.log:/opt/freedmr/freedmr.log" \
|
|
|
|
-v "/etc/freedmr/rules.py:/opt/freedmr/rules.py" -p 54100-54150:54100-54150/udp -p 62031:62031/udp -p 62036-62046:62036-62046/udp -p \
|
|
|
|
4321:4321/tcp "hacknix/freedmr:v1.1-with-proxy"
|
|
|
|
|
|
|
|
|
|
|
|
`docker container ls`
|
|
|
|
|
|
|
|
Grab the name
|
|
|
|
|
|
|
|
## Start on boot / restart on die
|
|
|
|
|
|
|
|
`docker update --restart unless-stopped <name>`
|
|
|
|
|
|
|
|
|