From ae1fed3eef44b6713e31059c5b1910b9e4784e6a Mon Sep 17 00:00:00 2001 From: Luis Miguel Vicente Fuentes Date: Sat, 12 Sep 2020 14:07:59 +0200 Subject: [PATCH] Update README format and some docker params --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7022025..a3c8059 100644 --- a/README.md +++ b/README.md @@ -6,27 +6,27 @@ Run Monit inside docker. [Monit](https://mmonit.com/monit/) is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. -Default username/password: admin/monit +Default username/password: `admin/monit` ## Docker setup -Install docker: https://docs.docker.com/engine/installation/ +Install docker: -Install docker compose: https://docs.docker.com/compose/install/ +Install docker compose: -Docker documentation: https://docs.docker.com/ +Docker documentation: ### Build-in docker image - build docker image `docker build -t monit .` -- start monit: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc monit` +- start monit: `docker run --rm -it -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc monit` ### Docker Hub image -- pull docker image from docker hub: `docker pull kijart/monit` +- pull docker image from docker hub: `docker pull kijart/monit:latest` -- start monit: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc kijart/monit` +- start monit: `docker run --rm -it -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc kijart/monit:latest` - create a docker container: @@ -35,7 +35,7 @@ docker create \ --name=monit \ -p 2812:2812 \ -v $(pwd)/monitrc:/etc/monitrc \ - kijart/monit + kijart/monit:latest ``` ### Docker compose