diff options
author | Philippe SEGATORI <tigitz@users.noreply.github.com> | 2016-07-16 17:03:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-16 17:03:07 +0200 |
commit | e99c7992eb777feaf35d9691b7e066b696f93ab1 (patch) | |
tree | f5d4cf5a661aec24d5c9801f9b2ba7fcd642a257 /README.rst | |
parent | d5d85325dd5a331157be83773c78a3b325f13792 (diff) |
add docker container web server mode example in readme
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -148,6 +148,12 @@ Run the container in console mode: .. code-block:: console docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances + +Run the container in Web server mode (notice the GLANCES_OPT environment variable setting parameters for the glances startup command) : + +.. code-block:: console + + docker run -d -p 61208:61208 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host docker.io/nicolargo/glances Additionally, If you want to use your own glances.conf file, you can create your own Dockerfile: |