{"action":"created","issue":{"url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/104","labels_url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/104/comments","events_url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/104/events","html_url":"https://github.com/baudehlo/node-phantom-simple/issues/104","id":123280625,"number":104,"title":"Cannot read property 'createPage' of undefined - Docker container","user":{"login":"alessandroprioni","id":3762082,"avatar_url":"https://avatars.githubusercontent.com/u/3762082?v=3","gravatar_id":"","url":"https://api.github.com/users/alessandroprioni","html_url":"https://github.com/alessandroprioni","followers_url":"https://api.github.com/users/alessandroprioni/followers","following_url":"https://api.github.com/users/alessandroprioni/following{/other_user}","gists_url":"https://api.github.com/users/alessandroprioni/gists{/gist_id}","starred_url":"https://api.github.com/users/alessandroprioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessandroprioni/subscriptions","organizations_url":"https://api.github.com/users/alessandroprioni/orgs","repos_url":"https://api.github.com/users/alessandroprioni/repos","events_url":"https://api.github.com/users/alessandroprioni/events{/privacy}","received_events_url":"https://api.github.com/users/alessandroprioni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/baudehlo/node-phantom-simple/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-21T13:35:10Z","updated_at":"2016-01-25T04:03:57Z","closed_at":"2016-01-25T04:03:57Z","body":"Hi, I can't run node-phantom-simple inside a Docker container. Here is my Dockerfile and docker-compose.yml: https://gist.github.com/alessandroprioni/e81ac854c761761ddb9a\r\n\r\nHere is the error I get: \r\n\r\nroot@5a0f60ae5666:/usr/src/app# node test.js \r\n/usr/src/app/test.js:4\r\n  return browser.createPage(function (err, page) {\r\n                ^\r\n\r\nTypeError: Cannot read property 'createPage' of undefined\r\n    at /usr/src/app/test.js:4:17\r\n    at /usr/src/app/node_modules/node-phantom-simple/node-phantom-simple.js:277:7\r\n    at /usr/src/app/node_modules/node-phantom-simple/node-phantom-simple.js:245:13\r\n    at ChildProcess.exithandler (child_process.js:210:5)\r\n    at emitTwo (events.js:87:13)\r\n    at ChildProcess.emit (events.js:172:7)\r\n    at maybeClose (internal/child_process.js:818:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\n\r\nIf I try to run ´phantomjs´ directly from the console it works.\r\n\r\nAnyone knows how to help?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/comments/174388697","html_url":"https://github.com/baudehlo/node-phantom-simple/issues/104#issuecomment-174388697","issue_url":"https://api.github.com/repos/baudehlo/node-phantom-simple/issues/104","id":174388697,"user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T04:03:57Z","updated_at":"2016-01-25T04:03:57Z","body":"http://serverfault.com/questions/219984/busybox-netstat-no-p install normal netstat/ss, instead the one from busybox."}}