{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25729","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25729/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25729/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25729/events","html_url":"https://github.com/saltstack/salt/issues/25729","id":97300880,"number":25729,"title":"Allow a minion to manage multiple running containers on the same machine","user":{"login":"thedrow","id":48936,"avatar_url":"https://avatars.githubusercontent.com/u/48936?v=3","gravatar_id":"","url":"https://api.github.com/users/thedrow","html_url":"https://github.com/thedrow","followers_url":"https://api.github.com/users/thedrow/followers","following_url":"https://api.github.com/users/thedrow/following{/other_user}","gists_url":"https://api.github.com/users/thedrow/gists{/gist_id}","starred_url":"https://api.github.com/users/thedrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedrow/subscriptions","organizations_url":"https://api.github.com/users/thedrow/orgs","repos_url":"https://api.github.com/users/thedrow/repos","events_url":"https://api.github.com/users/thedrow/events{/privacy}","received_events_url":"https://api.github.com/users/thedrow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2827,"closed_issues":3121,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-12-29T05:21:56Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-26T09:10:41Z","updated_at":"2015-12-29T09:09:52Z","closed_at":null,"body":"Docker has introduced the ```docker exec``` command in 1.3 which has been around for quite a while now.\r\nIf a user would like to modify a running container (in order to apply a hot fix for example) using Salt he is not required to install Salt inside the container.\r\nInstead, the Salt minion should be aware that the container is running and instead of executing the command on the host it will use ```docker exec``` to execute it on the running container.\r\n\r\nWe can use the hostname or the running container's name as the minion id for that container."},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/167753539","html_url":"https://github.com/saltstack/salt/issues/25729#issuecomment-167753539","issue_url":"https://api.github.com/repos/saltstack/salt/issues/25729","id":167753539,"user":{"login":"kaithar","id":76736,"avatar_url":"https://avatars.githubusercontent.com/u/76736?v=3","gravatar_id":"","url":"https://api.github.com/users/kaithar","html_url":"https://github.com/kaithar","followers_url":"https://api.github.com/users/kaithar/followers","following_url":"https://api.github.com/users/kaithar/following{/other_user}","gists_url":"https://api.github.com/users/kaithar/gists{/gist_id}","starred_url":"https://api.github.com/users/kaithar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaithar/subscriptions","organizations_url":"https://api.github.com/users/kaithar/orgs","repos_url":"https://api.github.com/users/kaithar/repos","events_url":"https://api.github.com/users/kaithar/events{/privacy}","received_events_url":"https://api.github.com/users/kaithar/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T09:09:52Z","updated_at":"2015-12-29T09:09:52Z","body":":+1: on this.\r\n\r\nHow about just extending salt-ssh's rosters to allow it to do smarter things?  I'm thinking something along the lines of...\r\n* Upgrade `sudo` key to accept a username so you can switch to a different user.\r\n* Some kind of `via` key to specify a list of jump hosts, for when you can't connect directly.\r\n* A `docker` key to specify the container to enter after connecting via ssh.  Can also specify stuff like docker-exec driver.  I would imagine that this can also be done for other vm/container techs that support console entry like BSD jails, LXC and OpenVZ.  \r\n* A `chroot` key to instruct it to chroot to a specific directory.\r\n\r\nEach of these cases could be implemented easily if file transfer were done via a call to `cat > filename` rather than scp and would make salt-ssh much more powerful.  Thoughts?"}}