-
Notifications
You must be signed in to change notification settings - Fork 2k
Newby question to CUDA container and ssh #36
Comments
I'm not sure I understood your problem correctly. |
Hello, Prerequisites:
Finally my problem:
It looks the like this:
I changed the password but that should not be an issue. The I build the container with docker with "docker build -t image_name_goes_here". When I start the container interactively with "nvidia-docker run -it --name name_goes_here -p 10022:22 image_goes_here /bin/bash" I can use "nvidia-smi -q" to get the desired output. BUT when I ssh into the same running container even a "which nvidia-smi" fails though it is in the right place. Any ideas what I missed to get the desired behavior? I what the ssh-container solution because I do not want every user to work on the host machine though I know I does not completely fulfill the docker philosophy. Regards, Stefan |
Your issue comes from the fact that the CUDA environment is not passed to the SSH session. RUN echo "export PATH=$PATH" >> /etc/profile && \
echo "ldconfig" >> /etc/profile |
Indeed that solved it. Thank you very much. May I add another two questions then:
I hope my questions are not too abstract. Regards, Stefan |
|
Thanks a lot. I think I can go on with your information. Regards, Stefan |
Hello,
I have a machine with a proper CUDA and Docker installation. When I start an interactive container and for example do an nvidia-sim -l everything looks fine. However when I add an ssh server that in the future other users can also use CUDA (without knowing about Docker) the same container fails when I do an nvidia-sim, although the binary is there.
I read about the nvidia-docker-plugin, but I think I need something like a step by step instruction on how to use it.
Regards,
Stefan
The text was updated successfully, but these errors were encountered: