Browse Source

add --init to suggested docker run invocations

See #2096; this should fix unreaped zombies when using an auth-script or
ip-check-script that spawns its own subprocesses, then exits before reaping
them.
pull/2097/head
Shivaram Lingamneni 7 months ago
parent
commit
d1c8ce571b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      distrib/docker/README.md

+ 3
- 3
distrib/docker/README.md View File

18
 expose the ports:
18
 expose the ports:
19
 
19
 
20
 ```shell
20
 ```shell
21
-docker run --name ergo -d -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
21
+docker run --init --name ergo -d -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
22
 ```
22
 ```
23
 
23
 
24
 This will start Ergo and listen on ports 6667 (plain text) and 6697 (TLS).
24
 This will start Ergo and listen on ports 6667 (plain text) and 6697 (TLS).
48
 
48
 
49
 ```shell
49
 ```shell
50
 docker volume create ergo-data
50
 docker volume create ergo-data
51
-docker run -d -v ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
51
+docker run --init -d -v ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
52
 ```
52
 ```
53
 
53
 
54
 Or to mount a folder from your host machine:
54
 Or to mount a folder from your host machine:
55
 
55
 
56
 ```shell
56
 ```shell
57
 mkdir ergo-data
57
 mkdir ergo-data
58
-docker run -d -v $(PWD)/ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
58
+docker run --init -d -v $(PWD)/ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
59
 ```
59
 ```
60
 
60
 
61
 ## Customising the config
61
 ## Customising the config

Loading…
Cancel
Save