Skip to content

Commit

Permalink
Improve documentation from #391
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Apr 21, 2023
1 parent 1380f9d commit a2f9787
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@ Design your Dockerfile

.. code-block:: docker
jetson-stats need few things to be installed on your container.

1. apt-get install -y python3
2. ``apt-get install -y python3-pip`` or you can install from **source**

Below a simple example to install jetson-stats

FROM python:3-buster
RUN pip install -U jetson-stats

Tips and tricks
---------------

If you work with different **multiple users** on your docker container:

.. code-block:: bash
docker run --group-add $JTOP_GID --rm -it -v /run/jtop.sock:/run/jtop.sock rbonghi/jetson_stats:latest
You can get the ``JTOP_GID`` by running:

.. code-block:: bash
getent group jtop | awk -F: '{print $3}'
Issue reference `#391 https://github.com/rbonghi/jetson_stats/issues/391`_

0 comments on commit a2f9787

Please sign in to comment.