solved - Error on "docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi"
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
i write that issue because i cant find any another solution in internet
Can you please share some context about which error were you getting?
Hello!
Can you share some more context here? I usually close issues after around a month of inactivity.
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.
- docker run -it --rm --runtime=nvidia tensorflow/tensorflow:latest-gpu-py3 bash
- ldconfig
- nvidia-smi //then open a new console write:
- docker ps
//find your container id then save them to disk: - 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
Closing as no new activity.