π DockerΒΆ
You can run directly in Docker jtop, you need only to:
Install jetson-stats on your host
Install jetson-stats on your container as well
Pass to your container
/run/jtop.sock:/run/jtop.sock
You can try running this command
docker run --rm -it -v /run/jtop.sock:/run/jtop.sock rbonghi/jetson_stats:latest
Design your DockerfileΒΆ
jetson-stats need few things to be installed on your container.
apt-get install -y python3
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:
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:
getent group jtop | awk -F: '{print $3}'
Issue reference #391