{"action":"created","issue":{"url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/255","repository_url":"https://api.github.com/repos/NVIDIA/nvidia-docker","labels_url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/255/comments","events_url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/255/events","html_url":"https://github.com/NVIDIA/nvidia-docker/issues/255","id":191785811,"number":255,"title":"Error in trying to run an nvidia-docker container","user":{"login":"kohaugustine","id":6628545,"avatar_url":"https://avatars.githubusercontent.com/u/6628545?v=3","gravatar_id":"","url":"https://api.github.com/users/kohaugustine","html_url":"https://github.com/kohaugustine","followers_url":"https://api.github.com/users/kohaugustine/followers","following_url":"https://api.github.com/users/kohaugustine/following{/other_user}","gists_url":"https://api.github.com/users/kohaugustine/gists{/gist_id}","starred_url":"https://api.github.com/users/kohaugustine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohaugustine/subscriptions","organizations_url":"https://api.github.com/users/kohaugustine/orgs","repos_url":"https://api.github.com/users/kohaugustine/repos","events_url":"https://api.github.com/users/kohaugustine/events{/privacy}","received_events_url":"https://api.github.com/users/kohaugustine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-26T04:15:12Z","updated_at":"2016-11-30T04:09:53Z","closed_at":"2016-11-30T04:09:53Z","body":"Hi,\r\n\r\nI am having trouble running a command of this form:\r\n\r\n`sudo nvidia-docker run -it --name <<CONTAINER_NAME>> -v \"$(pwd)\"/data:/home/raiuser/data -v \"$(pwd)\"/src:/home/raiuser/src/src <<IMAGE_NAME>>`\r\n\r\nThe `-v` additional volume bindings are necessary because I need to be developing code which I will then compile and test within docker container. When I run the entire command, the process also takes quite a long time. It will take a while before it just returns to me with this error:\r\n\r\n`Error response from daemon: Post http://%2Fvar%2Flib%2Fnvidia-docker%2Fnvidia-docker.sock/VolumeDriver.Mount: dial unix /var/lib/nvidia-docker/nvidia-docker.sock: connect: no such file or directory`\r\n\r\nI know that the container actually got created when I do `docker ps -a`. Its just that when I want to run the container that I run into this error.\r\n\r\nI have already made sure that `nvidia-docker-plugin` is up and running when I am doing this. I have also made sure that I built my Docker image using `nvidia-docker` command. \r\n\r\nAlso, last question about this is that, I noticed that ever since I have started running things with nvidia-docker, all my docker commands that I execute take a significantly longer time than before. Is this normal (I was using docker before without nvidia-docker, and it never took so long)? Does anyone know why? \r\neven the non-nvidia docker commands, just plain docker commands, take so much longer now.\r\n\r\nAlso, I don't know if this might be related to the issue, but for my docker setup, I have never created any user groups, so whenever I run docker, I need to run with sudo. So I have had to run all my nvidia-docker commands with sudo.\r\n\r\nI really need to get the docker system up and running on my computer in order to complete a school related project soon in a month or so. Initially I didn't know about nvidia-docker and so I was only using docker, until I found out that when I was trying to do a nvprof of the program and had the error telling me it could not find any CUDA drivers. I then found out its because I did not make use of nvidia-docker after reading this page https://github.com/NVIDIA/nvidia-docker/wiki/NVIDIA-driver#challenges and realized that somehow the Nvidia drivers folds on my system were not linked to the docker container, and that Nvidia-docker is supposed to help in this.\r\n\r\nThank you so much to anyone who can help in this!!!"},"comment":{"url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/comments/263778292","html_url":"https://github.com/NVIDIA/nvidia-docker/issues/255#issuecomment-263778292","issue_url":"https://api.github.com/repos/NVIDIA/nvidia-docker/issues/255","id":263778292,"user":{"login":"kohaugustine","id":6628545,"avatar_url":"https://avatars.githubusercontent.com/u/6628545?v=3","gravatar_id":"","url":"https://api.github.com/users/kohaugustine","html_url":"https://github.com/kohaugustine","followers_url":"https://api.github.com/users/kohaugustine/followers","following_url":"https://api.github.com/users/kohaugustine/following{/other_user}","gists_url":"https://api.github.com/users/kohaugustine/gists{/gist_id}","starred_url":"https://api.github.com/users/kohaugustine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohaugustine/subscriptions","organizations_url":"https://api.github.com/users/kohaugustine/orgs","repos_url":"https://api.github.com/users/kohaugustine/repos","events_url":"https://api.github.com/users/kohaugustine/events{/privacy}","received_events_url":"https://api.github.com/users/kohaugustine/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T04:09:53Z","updated_at":"2016-11-30T04:09:53Z","body":"@flx42  Thank you for checking. I was about to reply you, that I didn't try further after uninstalling nvidia-docker, because someone in the course released a bunch of procedures for compiling and testing with CMake. As deadlines are near, we need to get started on developing asap and won't have the time to try further with nvidia-docker unfortunately. Thank you very much for your help though! I'll save our post and it'll help next time when I need to set up nvidia-docker for a project."}}
{"actor":{"display_login":"kohaugustine"}}