Skip to content

jammsen/docker-node-nvidia-smi-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create manual an image from a Docker-Run with GPU-Support enabled of Node-Base-Image

  1. docker run --name node-nvidia -ti --rm --gpus=all node:21.7.1-bookworm-slim bash

  2. Check via printenv if the ENV-Var NVIDIA_VISIBLE_DEVICES=all is set

  3. Run the install and cleanup command

sed -i 's/main/main contrib non-free non-free-firmware/g' /etc/apt/sources.list.d/debian.sources \
    && apt update \
    && apt install -y --no-install-recommends --no-install-suggests nvidia-driver \
    && apt-get autoremove -y --purge \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  1. Check if everything is installed via double tab nvidia-smi
  2. Save the container as an image docker commit node-nvidia jammsen/node-nvidia-smi-base:21.7.1-bookworm-slim

About

This Node API uses nvidia-smi exports and migrates it to json and delivers it

Topics

Resources

License

Stars

Watchers

Forks