From 4a7d88d5374c131b4f1f7f081f9aad7c8c1fc635 Mon Sep 17 00:00:00 2001 From: Luis Miguel Vicente Fuentes Date: Wed, 28 Feb 2018 20:10:16 +0100 Subject: [PATCH] Add Docker Hub image documentation --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index c95a1e8..67d7632 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,23 @@ Docker documentation: https://docs.docker.com/ - build docker image `docker build -t monit .` - start monit: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc monit` + +### Docker Hub image + +- pull docker image from docker hub: `docker pull kijart/monit` + +- download a video using docker image: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc kijart/monit` + +- create a docker container: + +``` +docker create \ + --name=monit \ + -p 2812:2812 \ + -v $(pwd)/monitrc:/etc/monitrc \ + kijart/monit +``` + +### Troubleshooting + +If when starting Monit returns the following message: `The control file '/etc/monitrc' permission 0755 is wrong, maximum 0700 allowed`, simply give the appropriate permissions to _monitrc_: `chmod 700 monitrc`.