From 90671eb93f8812fa74281accde2363a170cb47cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Sautret?= Date: Wed, 22 Jun 2022 16:04:32 +0200 Subject: [PATCH] Runs tini in the container to cope with zombies Some versions prior to 22.05 produce zombies epmd. It's a good idea anyway to have an init process for all versions as we can spawn lot's of stuffs. --- ecs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecs/README.md b/ecs/README.md index d8cc53c..71d7de3 100644 --- a/ecs/README.md +++ b/ecs/README.md @@ -25,7 +25,7 @@ If you are using a Windows operating system, check the tutorials mentioned in You can start ejabberd in a new container with the following command: ```bash -docker run --name ejabberd -d -p 5222:5222 ejabberd/ecs +docker run --name ejabberd -d -p 5222:5222 --init ejabberd/ecs ``` This command will run Docker image as a daemon, @@ -48,7 +48,7 @@ docker restart ejabberd If you would like to start ejabberd with an Erlang console attached you can use the `live` command: ```bash -docker run -it -p 5222:5222 ejabberd/ecs live +docker run -it -p 5222:5222 --init ejabberd/ecs live ``` This command will use default configuration file and XMPP domain "localhost". @@ -60,7 +60,7 @@ and share local directory to store database: ```bash mkdir database -docker run -d --name ejabberd -v $(pwd)/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml -v $(pwd)/database:/home/ejabberd/database -p 5222:5222 ejabberd/ecs +docker run -d --name ejabberd -v $(pwd)/ejabberd.yml:/home/ejabberd/conf/ejabberd.yml -v $(pwd)/database:/home/ejabberd/database -p 5222:5222 --init ejabberd/ecs ``` # Next steps