{"action":"created","issue":{"url":"https://api.github.com/repos/floydhub/dockerfiles/issues/31","repository_url":"https://api.github.com/repos/floydhub/dockerfiles","labels_url":"https://api.github.com/repos/floydhub/dockerfiles/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/floydhub/dockerfiles/issues/31/comments","events_url":"https://api.github.com/repos/floydhub/dockerfiles/issues/31/events","html_url":"https://github.com/floydhub/dockerfiles/issues/31","id":246568306,"number":31,"title":"vnc for openAI gym","user":{"login":"AwokeKnowing","id":2770322,"avatar_url":"https://avatars0.githubusercontent.com/u/2770322?v=4","gravatar_id":"","url":"https://api.github.com/users/AwokeKnowing","html_url":"https://github.com/AwokeKnowing","followers_url":"https://api.github.com/users/AwokeKnowing/followers","following_url":"https://api.github.com/users/AwokeKnowing/following{/other_user}","gists_url":"https://api.github.com/users/AwokeKnowing/gists{/gist_id}","starred_url":"https://api.github.com/users/AwokeKnowing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AwokeKnowing/subscriptions","organizations_url":"https://api.github.com/users/AwokeKnowing/orgs","repos_url":"https://api.github.com/users/AwokeKnowing/repos","events_url":"https://api.github.com/users/AwokeKnowing/events{/privacy}","received_events_url":"https://api.github.com/users/AwokeKnowing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-07-30T07:38:49Z","updated_at":"2017-09-18T04:47:42Z","closed_at":null,"author_association":"NONE","body":"openAI gym is working in the pytorch image, but to actually run the atari environments, it fails due to lack of x11.  What's the best way to get it to where we can see the environments.  I tried adding a desktop with vnc but it messed up the gpu support. \r\n\r\nin my attempts strangely enough the atari environments would run when I run the container with docker, but when I run the container with nvidia-docker (gpu enabled), the gpu is definately working (torch.cuda.is_available()) but the atari games error out on \r\n\r\n```\r\nFile \"/usr/local/lib/python3.5/site-packages/pyglet/gl/glx_info.py\", line 83, in have_version\r\n    raise GLXInfoException('pyglet requires an X server with GLX')\r\npyglet.gl.glx_info.GLXInfoException: pyglet requires an X server with GLX\r\n \r\n```\r\n\r\nto be clear, I have an Nvidia GPU. my goal is to work with pytorch and openai gym.  your pytorch image is perfect, except that I need to see the atari environments.  I don't know how to see them but have been trying for 16 hours.  I can follow instructions, but I can't seem to find instructions."},"comment":{"url":"https://api.github.com/repos/floydhub/dockerfiles/issues/comments/330128821","html_url":"https://github.com/floydhub/dockerfiles/issues/31#issuecomment-330128821","issue_url":"https://api.github.com/repos/floydhub/dockerfiles/issues/31","id":330128821,"user":{"login":"AwokeKnowing","id":2770322,"avatar_url":"https://avatars0.githubusercontent.com/u/2770322?v=4","gravatar_id":"","url":"https://api.github.com/users/AwokeKnowing","html_url":"https://github.com/AwokeKnowing","followers_url":"https://api.github.com/users/AwokeKnowing/followers","following_url":"https://api.github.com/users/AwokeKnowing/following{/other_user}","gists_url":"https://api.github.com/users/AwokeKnowing/gists{/gist_id}","starred_url":"https://api.github.com/users/AwokeKnowing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AwokeKnowing/subscriptions","organizations_url":"https://api.github.com/users/AwokeKnowing/orgs","repos_url":"https://api.github.com/users/AwokeKnowing/repos","events_url":"https://api.github.com/users/AwokeKnowing/events{/privacy}","received_events_url":"https://api.github.com/users/AwokeKnowing/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T04:47:42Z","updated_at":"2017-09-18T04:47:42Z","author_association":"NONE","body":"Ok, so I now believe the best way for local development will be x forwarding.  No need to install anything else in the image.\r\n\r\nHowever, I believe something in the floydhub stack has corrupted the normal rendering.  Other environments work but all the atari ones render with corrupted display.  \r\n\r\nTo reproduce, run:\r\n```\r\nnvidia-docker run --privileged --rm -it --name ataritest \\\r\n    -e DOCKER_NET_HOST=172.17.0.1 \\\r\n    -v /var/run/docker.sock:/var/run/docker.sock \\\r\n    --user=$(id -u) \\\r\n    --env=\"DISPLAY\" \\\r\n    --workdir=\"/home/$USER\" \\\r\n    --volume=\"/etc/group:/etc/group:ro\" \\\r\n    --volume=\"/etc/passwd:/etc/passwd:ro\" \\\r\n    --volume=\"/etc/shadow:/etc/shadow:ro\" \\\r\n    --volume=\"/etc/sudoers.d:/etc/sudoers.d:ro\" \\\r\n    --volume=\"/tmp/.X11-unix:/tmp/.X11-unix:rw\" \\\r\n    floydhub/pytorch:0.1.11-gpu-py3.6 bash\r\n```\r\nnow in the image, type `python` and the following:\r\n```\r\nimport gym\r\nenv = gym.make('Pong-v0')\r\nenv.reset()\r\nenv.render()\r\n```\r\nThat should open up an x-forwarded window on your machine, but the display is corrupt (at least for me)\r\n![image](https://user-images.githubusercontent.com/2770322/30529322-2dc47838-9bf1-11e7-84e6-0882662ab19f.png)\r\n\r\nAbove I actually used SpaceInvaders-v0\r\n\r\nSo, the point is that there is no need to install a 'desktop' or vnc or anything.  x-forwarding can allow local development viewing of the windows just fine.  However, something with openGL or something is messed up in the floydhub/pytorch image.\r\n\r\nPlease try the above and let me know if you can reproduce it.  If it works fine for you then I guess something is wrong with my drivers.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"AwokeKnowing"}}