From 90bf62ca6eee9e046f22f86a0681ce56930dbb58 Mon Sep 17 00:00:00 2001 From: Fabian Reitz <56021599+FabianReitz@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:38:09 +0200 Subject: [PATCH] Updated `README.md` (#418) Added instruction on how to execute CLI commands while using the Docker Container. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3c698ca..1a0533de 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,21 @@ Read about running EmailEngine as a SystemD service [here](https://emailengine.a ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/postalsys/emailengine/v2?label=Docker%20image%20size) -See the documentation for using EmailEngine with Docker [here](https://emailengine.app/docker). +To execute EmailEngine-CLI commands while using the Docker Container, you can use the following approach: + +1. Exec into the Docker Container: + +``` +$ docker exec -it /bin/sh +``` + +2. Run the command by executing the `./bin/emailengine.js` file with node: + +``` +$ node bin/emailengine.js +``` + +See the full documentation for using EmailEngine with Docker [here](https://emailengine.app/docker). ## Resolving issues with Redis