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 6 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,7 +18,7 @@ certificates. To get a working ircd, all you need to do is run the image and
18 18
 expose the ports:
19 19
 
20 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 24
 This will start Ergo and listen on ports 6667 (plain text) and 6697 (TLS).
@@ -48,14 +48,14 @@ For example, to create a new docker volume and then mount it:
48 48
 
49 49
 ```shell
50 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 54
 Or to mount a folder from your host machine:
55 55
 
56 56
 ```shell
57 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 61
 ## Customising the config

Loading…
Cancel
Save