Skip to content

Commit

Permalink
doc: Add note on persistent container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobHooper authored and jpmckinney committed May 7, 2024
1 parent 88e48ba commit 4886f8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/maintain/docker.rst
Expand Up @@ -22,6 +22,16 @@ Run, replacing ``CONTAINER``:
docker compose logs -f -t CONTAINER
.. note::

Container logs are cleared when containers are restarted.
To list and view historic container logs, replacing ``CONTAINER``:

.. code-block:: bash
ls /var/log/docker-custom/CONTAINER*
less /var/log/docker-custom/CONTAINER.log
Open a shell
------------

Expand Down

0 comments on commit 4886f8e

Please sign in to comment.