nvidia-docker icon indicating copy to clipboard operation
nvidia-docker copied to clipboard

solved - Error on "docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi"

Open fardok opened this issue 7 years ago • 5 comments

hi everyone!

i solved that error

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi

error is because librarys dont connect to right place there's two ways to fix that:

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base bash
inside container write: ldconfig
then for check that is all ok write nvidia-smi
then in another console write: docker ps and find your container
then save them to disk: docker commit c3f279d17e0a newname/newname:fixed
instead of c3f279d17e0a write container id from docker ps
thats all

docker run --runtime=nvidia --rm nvidia/cuda:9.0-base ldconfig ;nvidia-smi ____________________________________________^^^^^^^^^^ ldconfig; nvidia-smi

thats all

fardok avatar Dec 20 '18 10:12 fardok

i write that issue because i cant find any another solution in internet

fardok avatar Dec 20 '18 10:12 fardok

Can you please share some context about which error were you getting?

guptaNswati avatar Dec 20 '18 12:12 guptaNswati

Hello!

Can you share some more context here? I usually close issues after around a month of inactivity.

RenaudWasTaken avatar Dec 30 '18 20:12 RenaudWasTaken

Thank you very much for your answer. I can‘t find any another solution in internet too.And i tried it of tensorflow for gpu.

  1. docker run -it --rm --runtime=nvidia tensorflow/tensorflow:latest-gpu-py3 bash
  2. ldconfig
  3. nvidia-smi //then open a new console write:
  4. docker ps
    //find your container id then save them to disk:
  5. docker commit 4f0d5870605f tensorflow/tensorflow:gpu_fixed //then you can use the new container which you saved and in this container you can excute 'nvidia-smi' and use the tensorflow-gpu

ljh2057 avatar Jan 08 '19 05:01 ljh2057

Closing as no new activity.

RenaudWasTaken avatar Jan 16 '19 06:01 RenaudWasTaken