mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
chore: add optional build argument for Dockerfile
This commit is contained in:
parent
d2dad65c89
commit
7e9ddd38bb
2 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
FROM nvidia/driver:418.87.01-ubuntu18.04
|
||||
ARG basetag="418.87.01-ubuntu18.04"
|
||||
FROM nvidia/driver:"${basetag}"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
|
|
|||
|
|
@ -200,6 +200,8 @@ docker build --tag nvitop:latest . # build the Docker image
|
|||
docker run -it --rm --runtime=nvidia --gpus=all --pid=host nvitop:latest -m # run the Docker container
|
||||
```
|
||||
|
||||
The [`Dockerfile`](Dockerfile) has a optional build argument `basetag` (default: `418.87.01-ubuntu18.04`) for the tag of image [`nvidia/driver`](https://hub.docker.com/r/nvidia/driver/tags).
|
||||
|
||||
**NOTE:** Don't forget to add the `--pid=host` option when running the container.
|
||||
|
||||
#### For SSH Users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue