{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/2219","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/2219/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/2219/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/2219/events","html_url":"https://github.com/hashicorp/nomad/issues/2219","id":202186220,"number":2219,"title":"Command not running when docker container has an ENTRYPOINT","user":{"login":"rickardrosen","id":11421608,"avatar_url":"https://avatars2.githubusercontent.com/u/11421608?v=4","gravatar_id":"","url":"https://api.github.com/users/rickardrosen","html_url":"https://github.com/rickardrosen","followers_url":"https://api.github.com/users/rickardrosen/followers","following_url":"https://api.github.com/users/rickardrosen/following{/other_user}","gists_url":"https://api.github.com/users/rickardrosen/gists{/gist_id}","starred_url":"https://api.github.com/users/rickardrosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickardrosen/subscriptions","organizations_url":"https://api.github.com/users/rickardrosen/orgs","repos_url":"https://api.github.com/users/rickardrosen/repos","events_url":"https://api.github.com/users/rickardrosen/events{/privacy}","received_events_url":"https://api.github.com/users/rickardrosen/received_events","type":"User","site_admin":false},"labels":[{"id":266750359,"url":"https://api.github.com/repos/hashicorp/nomad/labels/driver/docker","name":"driver/docker","color":"c7def8","default":false},{"id":218895785,"url":"https://api.github.com/repos/hashicorp/nomad/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-01-20T16:40:49Z","updated_at":"2017-08-01T00:19:44Z","closed_at":null,"body":"### Nomad version\r\n0.5.1\r\n\r\n### Operating system and Environment details\r\nUbuntu 16.10\r\nDocker version 1.13.0, build 49bf474\r\n\r\n### Issue\r\nA dockerfile with an `ENTRYPOINT [\"/run.sh\"]`\r\nWhen I schedule it with:\r\n```\r\n              \"command\": \"/local/containerpilot\",\r\n              \"args\": [\r\n                \"-config\",\r\n                \"file:///local/containerpilot.json\",\r\n                \"/run.sh\"\r\n              ]\r\n```\r\n`docker ps` shows COMMAND:\r\n`/run.sh /local/containerpilot -config file:///local/containerpilot.json /run.sh`\r\n\r\nI would expect the COMMAND to be:\r\n`/local/containerpilot -config file:///local/containerpilot.json /run.sh`"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/319232468","html_url":"https://github.com/hashicorp/nomad/issues/2219#issuecomment-319232468","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/2219","id":319232468,"user":{"login":"dvusboy","id":794816,"avatar_url":"https://avatars1.githubusercontent.com/u/794816?v=4","gravatar_id":"","url":"https://api.github.com/users/dvusboy","html_url":"https://github.com/dvusboy","followers_url":"https://api.github.com/users/dvusboy/followers","following_url":"https://api.github.com/users/dvusboy/following{/other_user}","gists_url":"https://api.github.com/users/dvusboy/gists{/gist_id}","starred_url":"https://api.github.com/users/dvusboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvusboy/subscriptions","organizations_url":"https://api.github.com/users/dvusboy/orgs","repos_url":"https://api.github.com/users/dvusboy/repos","events_url":"https://api.github.com/users/dvusboy/events{/privacy}","received_events_url":"https://api.github.com/users/dvusboy/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T00:19:44Z","updated_at":"2017-08-01T00:19:44Z","body":"Thanks, @schmichael, the code is a bit dense to trace. So, if I'm using the Docker driver, and under `task` : `service`, I specify `address_mode =  \"driver\"`. Then Nomad will register the container's IP address to Consul service advertisement, correct? Or do you mean the IP address of the Linux bridge/virtual switch is published."}}
{"actor":{"display_login":"dvusboy"}}