{"action":"created","issue":{"url":"https://api.github.com/repos/apocas/dockerode/issues/250","repository_url":"https://api.github.com/repos/apocas/dockerode","labels_url":"https://api.github.com/repos/apocas/dockerode/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/apocas/dockerode/issues/250/comments","events_url":"https://api.github.com/repos/apocas/dockerode/issues/250/events","html_url":"https://github.com/apocas/dockerode/issues/250","id":157714884,"number":250,"title":"container.exec problem....","user":{"login":"okekhj","id":18399559,"avatar_url":"https://avatars.githubusercontent.com/u/18399559?v=3","gravatar_id":"","url":"https://api.github.com/users/okekhj","html_url":"https://github.com/okekhj","followers_url":"https://api.github.com/users/okekhj/followers","following_url":"https://api.github.com/users/okekhj/following{/other_user}","gists_url":"https://api.github.com/users/okekhj/gists{/gist_id}","starred_url":"https://api.github.com/users/okekhj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okekhj/subscriptions","organizations_url":"https://api.github.com/users/okekhj/orgs","repos_url":"https://api.github.com/users/okekhj/repos","events_url":"https://api.github.com/users/okekhj/events{/privacy}","received_events_url":"https://api.github.com/users/okekhj/received_events","type":"User","site_admin":false},"labels":[{"id":54205219,"url":"https://api.github.com/repos/apocas/dockerode/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-31T16:30:06Z","updated_at":"2016-10-29T17:01:22Z","closed_at":"2016-10-29T17:01:22Z","body":"var Docker = require('dockerode');                                                                                                                                                                           \r\nvar docker = new Docker();                                                                                                                                                                                   \r\n                                                                                                                                                                                                             \r\ndocker.createContainer({                                                                                                                                                                                     \r\n    Image: 'ubuntu:14.04',                                                                                                                                                                                   \r\n    AttachStdin: false,                                                                                                                                                                                      \r\n    AttachStdout: true,                                                                                                                                                                                      \r\n    AttachStderr: true,                                                                                                                                                                                      \r\n    Tty: true,                                                                                                                                                                                               \r\n    Cmd: ['/bin/bash', '-c', 'tail -f /var/log/dmesg'],                                                                                                                                                      \r\n    OpenStdin: false,                                                                                                                                                                                        \r\n    StdinOnce: false                                                                                                                                                                                         \r\n}, function (error, container) {                                                                                                                                                                             \r\n    var option = {                                                                                                                                                                                           \r\n        Cmd: [\"echo\", \"'hello'\"]                                                                                                                                                                             \r\n    }                                                                                                                                                                                                        \r\n    var c = docker.getContainer(container.id);                                                                                                                                                               \r\n    c.start(function (error, data) {                                                                                                                                                                         \r\n        c.exec(option, function (error, exec) {                                                                                                                                                             \r\n            console.log('err: ', error);                                                                                                                                                                     \r\n            console.log('exec: ', exec);                                                                                                                                                                     \r\n        });                                                                                                                                                                                                  \r\n    });                                                                                                                                                                                                      \r\n});  \r\n\r\n>>\r\nerr:  null\r\nexec:  undefined\r\n/home/ryu/work/wcloud.centos/wsdk/node_modules/dockerode/lib/exec.js:85\r\n    callback(err, data);\r\n    ^\r\n\r\nTypeError: callback is not a function\r\n    at /home/ryu/work/wcloud.centos/wsdk/node_modules/dockerode/lib/exec.js:85:5\r\n    at Modem.buildPayload (/home/ryu/work/wcloud.centos/wsdk/node_modules/docker-modem/lib/modem.js:243:7)\r\n    at IncomingMessage.<anonymous> (/home/ryu/work/wcloud.centos/wsdk/node_modules/docker-modem/lib/modem.js:204:14)\r\n    at emitNone (events.js:72:20)\r\n    at IncomingMessage.emit (events.js:166:7)\r\n    at endReadableNT (_stream_readable.js:905:12)\r\n    at nextTickCallbackWith2Args (node.js:437:9)\r\n    at process._tickCallback (node.js:351:17)\r\n\r\n\r\nalso, `new Exec(self.modem, data.Id)` in `Container.prototype.exec definition` returns undefined...."},"comment":{"url":"https://api.github.com/repos/apocas/dockerode/issues/comments/257102935","html_url":"https://github.com/apocas/dockerode/issues/250#issuecomment-257102935","issue_url":"https://api.github.com/repos/apocas/dockerode/issues/250","id":257102935,"user":{"login":"apocas","id":597413,"avatar_url":"https://avatars.githubusercontent.com/u/597413?v=3","gravatar_id":"","url":"https://api.github.com/users/apocas","html_url":"https://github.com/apocas","followers_url":"https://api.github.com/users/apocas/followers","following_url":"https://api.github.com/users/apocas/following{/other_user}","gists_url":"https://api.github.com/users/apocas/gists{/gist_id}","starred_url":"https://api.github.com/users/apocas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apocas/subscriptions","organizations_url":"https://api.github.com/users/apocas/orgs","repos_url":"https://api.github.com/users/apocas/repos","events_url":"https://api.github.com/users/apocas/events{/privacy}","received_events_url":"https://api.github.com/users/apocas/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T17:01:22Z","updated_at":"2016-10-29T17:01:22Z","body":"Fixed in a previous release, forgot to close this issue :)"}}
{"actor":{"display_login":"apocas"}}