{"action":"created","issue":{"url":"https://api.github.com/repos/cerisier/docker-prerender/issues/2","labels_url":"https://api.github.com/repos/cerisier/docker-prerender/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cerisier/docker-prerender/issues/2/comments","events_url":"https://api.github.com/repos/cerisier/docker-prerender/issues/2/events","html_url":"https://github.com/cerisier/docker-prerender/issues/2","id":62794931,"number":2,"title":"More documentation","user":{"login":"rchrd2","id":182479,"avatar_url":"https://avatars.githubusercontent.com/u/182479?v=3","gravatar_id":"","url":"https://api.github.com/users/rchrd2","html_url":"https://github.com/rchrd2","followers_url":"https://api.github.com/users/rchrd2/followers","following_url":"https://api.github.com/users/rchrd2/following{/other_user}","gists_url":"https://api.github.com/users/rchrd2/gists{/gist_id}","starred_url":"https://api.github.com/users/rchrd2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchrd2/subscriptions","organizations_url":"https://api.github.com/users/rchrd2/orgs","repos_url":"https://api.github.com/users/rchrd2/repos","events_url":"https://api.github.com/users/rchrd2/events{/privacy}","received_events_url":"https://api.github.com/users/rchrd2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-18T20:45:47Z","updated_at":"2015-03-18T22:09:52Z","closed_at":null,"body":"Hello, \r\nI am having trouble getting this running. I am using puppet to set this up and this is my node definition:\r\n\r\n```\r\nnode prerender-01 {\r\n  # Install docker itself\r\n  class { 'docker': }\r\n  \r\n  docker::image { 'cerisier/prerender': \r\n    ensure => 'present',\r\n    require => Class['docker'],\r\n  }\r\n\r\n  # Runs an instance of the prerender image\r\n  docker::run { 'prerender':\r\n    image => 'cerisier/prerender',\r\n    ports => ['12300', '12301'],\r\n  }\r\n}\r\n```\r\n\r\nIt seems to be running, but I can't access it. I try a bunch of variations in curl and it doesn't run.\r\n\r\n```\r\n> root@prerender-01:~# curl http://0.0.0.0:3000/http://example.com\r\ncurl: (7) Failed to connect to localhost port 3000: Connection refused\r\n```\r\n\r\n`docker ps` gives:\r\n\r\n```\r\nroot@prerender-01:~# docker ps\r\nCONTAINER ID        IMAGE                       COMMAND                CREATED             STATUS              PORTS                                                NAMES\r\n0f52f957aa3b        cerisier/prerender:latest   \"/bin/sh -c 'node /d   5 minutes ago       Up 5 minutes        0.0.0.0:49157->12300/tcp, 0.0.0.0:49158->12301/tcp   prickly_bell    \r\n```\r\n\r\nI know I am doing something unusual using puppet, but it would be very helpful if there were a standard docker example. For starters, what is the default port that this should expose?"},"comment":{"url":"https://api.github.com/repos/cerisier/docker-prerender/issues/comments/83204198","html_url":"https://github.com/cerisier/docker-prerender/issues/2#issuecomment-83204198","issue_url":"https://api.github.com/repos/cerisier/docker-prerender/issues/2","id":83204198,"user":{"login":"cerisier","id":1126594,"avatar_url":"https://avatars.githubusercontent.com/u/1126594?v=3","gravatar_id":"","url":"https://api.github.com/users/cerisier","html_url":"https://github.com/cerisier","followers_url":"https://api.github.com/users/cerisier/followers","following_url":"https://api.github.com/users/cerisier/following{/other_user}","gists_url":"https://api.github.com/users/cerisier/gists{/gist_id}","starred_url":"https://api.github.com/users/cerisier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerisier/subscriptions","organizations_url":"https://api.github.com/users/cerisier/orgs","repos_url":"https://api.github.com/users/cerisier/repos","events_url":"https://api.github.com/users/cerisier/events{/privacy}","received_events_url":"https://api.github.com/users/cerisier/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T22:09:52Z","updated_at":"2015-03-18T22:09:52Z","body":"logs are currently output on stdout like most of docker containers do. Are you not able to see the stdout ?"}}