Skip to content

Commit

Permalink
add --init to suggested docker run invocations (#2097)
Browse files Browse the repository at this point in the history
* 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.

* add a note on why --init
  • Loading branch information
slingamn authored Nov 15, 2023
1 parent 4fabeed commit a5af245
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions distrib/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ certificates. To get a working ircd, all you need to do is run the image and
expose the ports:

```shell
docker run --name ergo -d -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
docker run --init --name ergo -d -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
```

This will start Ergo and listen on ports 6667 (plain text) and 6697 (TLS).
Expand All @@ -38,6 +38,11 @@ You should see a line similar to:
Oper username:password is admin:cnn2tm9TP3GeI4vLaEMS
```

We recommend the use of `--init` (`init: true` in docker-compose) to solve an
edge case involving unreaped zombie processes when Ergo's script API is used
for authentication or IP validation. For more details, see
[krallin/tini#8](https://github.com/krallin/tini/issues/8).

## Persisting data

Ergo has a persistent data store, used to keep account details, channel
Expand All @@ -48,14 +53,14 @@ For example, to create a new docker volume and then mount it:

```shell
docker volume create ergo-data
docker run -d -v ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
docker run --init -d -v ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
```

Or to mount a folder from your host machine:

```shell
mkdir ergo-data
docker run -d -v $(PWD)/ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
docker run --init -d -v $(PWD)/ergo-data:/ircd -p 6667:6667 -p 6697:6697 ghcr.io/ergochat/ergo:stable
```

## Customising the config
Expand Down

0 comments on commit a5af245

Please sign in to comment.