{"action":"opened","issue":{"url":"https://api.github.com/repos/stsvilik/wdio-docker-service/issues/23","repository_url":"https://api.github.com/repos/stsvilik/wdio-docker-service","labels_url":"https://api.github.com/repos/stsvilik/wdio-docker-service/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/stsvilik/wdio-docker-service/issues/23/comments","events_url":"https://api.github.com/repos/stsvilik/wdio-docker-service/issues/23/events","html_url":"https://github.com/stsvilik/wdio-docker-service/issues/23","id":301718673,"number":23,"title":"ERROR: connect ECONNREFUSED 127.0.0.1:4444","user":{"login":"prianchiru","id":28918190,"avatar_url":"https://avatars2.githubusercontent.com/u/28918190?v=4","gravatar_id":"","url":"https://api.github.com/users/prianchiru","html_url":"https://github.com/prianchiru","followers_url":"https://api.github.com/users/prianchiru/followers","following_url":"https://api.github.com/users/prianchiru/following{/other_user}","gists_url":"https://api.github.com/users/prianchiru/gists{/gist_id}","starred_url":"https://api.github.com/users/prianchiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prianchiru/subscriptions","organizations_url":"https://api.github.com/users/prianchiru/orgs","repos_url":"https://api.github.com/users/prianchiru/repos","events_url":"https://api.github.com/users/prianchiru/events{/privacy}","received_events_url":"https://api.github.com/users/prianchiru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T10:21:16Z","updated_at":"2018-03-02T10:21:16Z","closed_at":null,"author_association":"NONE","body":"Configured the config file as mentioned in the example. I am getting this error on building the image. my configuration files are as follows.\r\n\r\n`// wdio.conf.js\r\nexports.config = {\r\n  // ...\r\n  specs: [\r\n\r\n    // 'specs/login.spec.js',\r\n    // 'specs/medical_codes.spec.js',\r\n    'test2.js'  \r\n    // 'specs/chart_view.spec.js'\r\n],\r\n  services: ['docker'],\r\n//   mochaOpts: {\r\n//     timeout: 9999999,\r\n//     ui: 'bdd',\r\n// },\r\n  // ...\r\n  // Options are set here as well\r\n  capabilities: [{\r\n    maxInstances: 5,\r\n    browserName: 'firefox',\r\n    assumeUntrustedCertIssuer: true,\r\n    canAssumeUntrustedCertIssuer: true,\r\n    setAcceptUntrustedCertificates: true,\r\n    ignoreUndefinedDefinitions: true,\r\n    acceptInsecureCerts: true,\r\n    acceptSslCerts: true,\r\n    trustAllSSLCertificates: true\r\n  }],\r\n  dockerLogs: './logs',\r\n  dockerOptions: { \r\n    image: 'selenium/standalone-firefox',\r\n    healthCheck: 'http://localhost:4444',\r\n    options: { \r\n      p: ['4444:  '],\r\n      shmSize: '2g'\r\n    }    \r\n  },\r\n  before: function (capabilities, specs) {\r\n    browser.timeouts('script', 5000000);\r\n    browser.timeouts('implicit', 1000);\r\n    browser.timeouts('page load', 5000000);\r\n  },\r\n  //...\r\n};`\r\n\r\nDockerfile\r\n`FROM node:carbon\r\nADD . /app\r\nWORKDIR /app\r\nRUN npm i\r\nRUN npm run test`\r\n\r\nFull error text as follows\r\n`NOTE: Pulling image for the first time. Please be patient.\r\nERROR: connect ECONNREFUSED 127.0.0.1:4444\r\nfirefox\r\n    at new RuntimeError (/app/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:144:12)\r\n    at Request._callback (/app/node_modules/webdriverio/build/lib/utils/RequestHandler.js:327:43)\r\n    at self.callback (/app/node_modules/request/request.js:186:22)\r\n    at emitOne (events.js:116:13)\r\n    at Request.emit (events.js:211:7)\r\n    at Request.onRequestError (/app/node_modules/request/request.js:878:8)\r\n    at emitOne (events.js:121:20)\r\n    at ClientRequest.emit (events.js:211:7)\r\n    at Socket.socketErrorListener (_http_client.js:387:9)\r\n    at emitOne (events.js:116:13)\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! codingserviceautomation@1.0.0 test: `wdio test.conf`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the codingserviceautomation@1.0.0 test script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /root/.npm/_logs/2018-03-02T10_11_20_106Z-debug.log`"}}
{"actor":{"display_login":"prianchiru"}}