{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/7841","labels_url":"https://api.github.com/repos/docker/docker/issues/7841/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/7841/comments","events_url":"https://api.github.com/repos/docker/docker/issues/7841/events","html_url":"https://github.com/docker/docker/issues/7841","id":41706797,"number":7841,"title":"Proposal: Add --plugin flag instead of manually bind-mounting socket","user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-09-02T13:05:45Z","updated_at":"2015-01-06T00:39:19Z","closed_at":"2015-01-06T00:39:19Z","body":"Basically, a docker plugin is essentially this:\r\n\r\ndocker run -d -v /var/run/docker.sock:/var/run/docker.sock cpuguy83/something_crazy\r\nAnd if you want to share that with people, in the instructions we are telling them to do the same thing, but not everyone necessarily uses the unix socket, and even if they do it may not be in this location.\r\n\r\nIn addition, for such a common pattern this is pretty silly.\r\n\r\nInstead I propose that we can automatically bind mount a socket if requested using --plugin from the CLI.\r\n\r\ndocker run -d --plugin cpuguy83/something_crazy\r\nThis would have a default path for placing the socket in the container, but could potentially be customizable."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/68808319","html_url":"https://github.com/docker/docker/issues/7841#issuecomment-68808319","issue_url":"https://api.github.com/repos/docker/docker/issues/7841","id":68808319,"user":{"login":"crosbymichael","id":749551,"avatar_url":"https://avatars.githubusercontent.com/u/749551?v=3","gravatar_id":"","url":"https://api.github.com/users/crosbymichael","html_url":"https://github.com/crosbymichael","followers_url":"https://api.github.com/users/crosbymichael/followers","following_url":"https://api.github.com/users/crosbymichael/following{/other_user}","gists_url":"https://api.github.com/users/crosbymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/crosbymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosbymichael/subscriptions","organizations_url":"https://api.github.com/users/crosbymichael/orgs","repos_url":"https://api.github.com/users/crosbymichael/repos","events_url":"https://api.github.com/users/crosbymichael/events{/privacy}","received_events_url":"https://api.github.com/users/crosbymichael/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T00:39:19Z","updated_at":"2015-01-06T00:39:19Z","body":"I don't like this at all right now.  We have a flag for manually bind mounting files.  Explicit is better than implicit and we don't want to define a flag right now that sets the tone for future features.  What if two months down the road plugins are not containers that bind mount in the socket?  We are screwed because we have a flag like this.  \r\n\r\nLets not make any changes like this until we have requirements for what a plugin is.  If you want the socket mounted just use `-v`.  There is no reason to abstract this away."}}