Sign inSign up

dualvtable/nvidia-loop

By dualvtable

Updated over 5 years ago

Image
0

2.5K

dualvtable/nvidia-loop repository overview

This is a silly container that just infinitely calls nvidia-smi -L. The image was built to have the NVIDIA K8s device plugin attach a GPU to the container and let it run forever. The context for why this container was made was to verify issue #200. Details are here.

The Dockerfile is here:

# docker build --pull -t dualvtable/nvidia-loop --file Dockerfile .
FROM nvidia/cuda:11.0-base

COPY nvidia-loop.sh /tmp/nvidia-loop.sh
RUN chmod +x /tmp/nvidia-loop.sh

ENTRYPOINT ["/tmp/nvidia-loop.sh"]

While the silly script is here:

#!/usr/bin/env bash
while [ 0 == 0 ]; do
   nvidia-smi -L
done

Tag summary

Content type

Image

Digest

Size

44.6 MB

Last updated

over 5 years ago

docker pull dualvtable/nvidia-loop