mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
feat(workflows/docker): add workflow to build docker images (#191)
This commit is contained in:
parent
466f4f57b4
commit
ffc344d379
6 changed files with 133 additions and 11 deletions
|
|
@ -313,9 +313,7 @@ Press <kbd>h</kbd> for help or <kbd>q</kbd> to return to the terminal. See [Keyb
|
|||
Build and run the Docker image with [nvidia-container-toolkit](https://github.com/NVIDIA/nvidia-container-toolkit):
|
||||
|
||||
```bash
|
||||
git clone --depth=1 https://github.com/XuehaiPan/nvitop.git && cd nvitop # clone this repo first
|
||||
docker build --tag nvitop:latest . # build the Docker image
|
||||
docker run -it --rm --runtime=nvidia --gpus=all --pid=host nvitop:latest # run the Docker container
|
||||
docker run -it --rm --runtime=nvidia --gpus=all --pid=host ghcr.io/xuehaipan/nvitop:latest
|
||||
```
|
||||
|
||||
**NOTE:** Don't forget to add the `--pid=host` option when running the container.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue