{"action":"created","issue":{"url":"https://api.github.com/repos/tailhook/vagga/issues/102","labels_url":"https://api.github.com/repos/tailhook/vagga/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/tailhook/vagga/issues/102/comments","events_url":"https://api.github.com/repos/tailhook/vagga/issues/102/events","html_url":"https://github.com/tailhook/vagga/issues/102","id":113226093,"number":102,"title":"Support Docker CMD","user":{"login":"piranna","id":532414,"avatar_url":"https://avatars.githubusercontent.com/u/532414?v=3","gravatar_id":"","url":"https://api.github.com/users/piranna","html_url":"https://github.com/piranna","followers_url":"https://api.github.com/users/piranna/followers","following_url":"https://api.github.com/users/piranna/following{/other_user}","gists_url":"https://api.github.com/users/piranna/gists{/gist_id}","starred_url":"https://api.github.com/users/piranna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piranna/subscriptions","organizations_url":"https://api.github.com/users/piranna/orgs","repos_url":"https://api.github.com/users/piranna/repos","events_url":"https://api.github.com/users/piranna/events{/privacy}","received_events_url":"https://api.github.com/users/piranna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T13:34:51Z","updated_at":"2015-10-26T11:28:43Z","closed_at":null,"body":"Docker execution has two execution parameters, [ENTRYPOINT](https://docs.docker.com/reference/builder/#entrypoint) and [CMD](https://docs.docker.com/reference/builder/#cmd). `ENTRYPOINT` tells what binary should be executed when the container is started, similar to vagga `run` command parameter. On the other hand, `CMD` can be used to define some default parameters that will be given to `ENTRYPOINT` if this last one is defined, so since `ENTRYPOINT` (and `run`) works like a PID 1 process inside the container, people can set `CMD` to the binary they want to execute by default, so they can easily override it when executing the container and start a shell or other thing setting it as parameters.\r\n\r\nThe question is, how can someone mimic this behaviour in vagga? How can I be able to define some default command execution arguments in vagga that can be overriden when executing a command on it? I know there's the [accepts-arguments](http://vagga.readthedocs.org/en/latest/commands.html#opt-accepts-arguments) options, but it doesn't give too much info about how to use it nor if it accepts to define default arguments... :-/"},"comment":{"url":"https://api.github.com/repos/tailhook/vagga/issues/comments/151105640","html_url":"https://github.com/tailhook/vagga/issues/102#issuecomment-151105640","issue_url":"https://api.github.com/repos/tailhook/vagga/issues/102","id":151105640,"user":{"login":"tailhook","id":321799,"avatar_url":"https://avatars.githubusercontent.com/u/321799?v=3","gravatar_id":"","url":"https://api.github.com/users/tailhook","html_url":"https://github.com/tailhook","followers_url":"https://api.github.com/users/tailhook/followers","following_url":"https://api.github.com/users/tailhook/following{/other_user}","gists_url":"https://api.github.com/users/tailhook/gists{/gist_id}","starred_url":"https://api.github.com/users/tailhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tailhook/subscriptions","organizations_url":"https://api.github.com/users/tailhook/orgs","repos_url":"https://api.github.com/users/tailhook/repos","events_url":"https://api.github.com/users/tailhook/events{/privacy}","received_events_url":"https://api.github.com/users/tailhook/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T11:28:43Z","updated_at":"2015-10-26T11:28:43Z","body":"> You should add that info on the docs ;-) \r\n\r\nPull requests are welcome. I'm not sure where to place it and what wording would be the most meaningful.\r\n\r\n> Also, according to this, I think shell-mode could be deprecated, because except for one-liners you can do the same in a cleaner way using an external script file, isn't it?\r\n\r\nSure. But usually, I'm too lazy to put 3-4-5 line script into external file. I mean it's a matter of taste, so I'm in doubt that it should be deprecated."}}