From 7087b25fb18b86a1e50dc53d5ee780eedae0be2b Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 1 May 2020 00:33:22 -0400 Subject: [PATCH] Update instructions for starting container on reboot --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19a96f7..f21976e 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,9 @@ See? There is nothing easier. > If you want to run it constanly in the background add `-t -d --restart=always` after `run`: ```bash -docker run -t -d --restart=always -e SMF_CONFIG="$SMF_CONFIG" -p 25:25 zixia/simple-mail-forwarder +docker run -t -d --restart=always --name=mailman -e SMF_CONFIG="$SMF_CONFIG" -p 25:25 zixia/simple-mail-forwarder +crontab -e +# Add entry: @reboot docker start mailman ``` - `-t`: Allocate a pseudo-tty