Skip to content

Commit

Permalink
Correct an issue in the Podman export (date not serializable)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed May 8, 2023
1 parent 8782908 commit e3a1a77
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 1,435 deletions.
Binary file added docs/_static/containers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_static/docker.png
Binary file not shown.
27 changes: 15 additions & 12 deletions docs/aoa/docker.rst → docs/aoa/containers.rst
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
.. _docker:
.. _containers:

Docker
======
Containers
==========

If you use ``Docker``, Glances can help you to monitor your containers.
Glances uses the Docker API through the `docker-py`_ library.
If you use ``containers``, Glances can help you to monitor your Docker or Podman containers.
Glances uses the containers API through the `docker-py`_ and `podman-py`_ libraries.

You can install this dependency using:

.. code-block:: console
pip install glances[docker]
pip install glances[containers]
.. image:: ../_static/docker.png
.. image:: ../_static/containers.png

It is possible to define limits and actions from the configuration file
under the ``[docker]`` section:
under the ``[containers]`` section:

.. code-block:: ini
[docker]
[containers]
disable=False
# Only show specific containers (comma separated list of container name or regular expression)
show=thiscontainer,andthisone,andthoseones.*
# Hide some containers (comma separated list of container name or regular expression)
hide=donotshowthisone,andthose.*
# Show only specific containers (comma separated list of container name or regular expression)
#show=showthisone,andthose.*
# Define the maximum docker size name (default is 20 chars)
# Define the maximum containers size name (default is 20 chars)
max_name_size=20
# Global containers' thresholds for CPU and MEM (in %)
cpu_careful=50
Expand All @@ -44,12 +44,15 @@ under the ``[docker]`` section:
# By default, Glances only display running containers
# Set the following key to True to display all containers
all=False
# Define Podman sock
#podman_sock=unix:///run/user/1000/podman/podman.sock
You can use all the variables ({{foo}}) available in the Docker plugin.
You can use all the variables ({{foo}}) available in the containers plugin.

Filtering (for hide or show) is based on regular expression. Please be sure that your regular
expression works as expected. You can use an online tool like `regex101`_ in
order to test your regular expression.

.. _regex101: https://regex101.com/
.. _docker-py: https://github.com/docker/docker-py
.. _docker-py: https://github.com/containers/containers-py
.. _podman-py: https://github.com/containers/podman-py
3 changes: 1 addition & 2 deletions docs/aoa/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ Legend:
sensors
hddtemp
ps
monitor
containers
amps
events
docker
actions
8 changes: 0 additions & 8 deletions docs/aoa/monitor.rst

This file was deleted.

Loading

0 comments on commit e3a1a77

Please sign in to comment.