diff options
author | Nicolargo <nicolas@nicolargo.com> | 2016-05-27 13:28:51 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2016-05-27 13:28:51 +0200 |
commit | 42d45c290436ee6ef51df60d5a7287c41b0c84c2 (patch) | |
tree | 2bb7faa5c2141c42d1e2ba33b44e7fc70ed442d4 /README.rst | |
parent | 6329ae65886a5e2a72add9d42917ce49791bf107 (diff) |
Expose glances config file when running in docker #868
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -144,6 +144,22 @@ Run the container in console mode: docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances +Additionally, If you want to use your own glances.conf file, you can create your +own Dockerfile: + +.. code-block:: console + + FROM nicolargo/glances + COPY glances.conf /glances/conf/glances.conf + CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT + +Alternatively, you can specify something along the same lines with docker run options: + +.. code-block:: console + + docker run -v ./glances.conf:/glances/conf/glances.conf -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances + +Where ./glances.conf is a local directory containing your glances.conf file. GNU/Linux --------- |