{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/machine/issues/987","labels_url":"https://api.github.com/repos/docker/machine/issues/987/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/987/comments","events_url":"https://api.github.com/repos/docker/machine/issues/987/events","html_url":"https://github.com/docker/machine/issues/987","id":67416504,"number":987,"title":"Machine should manage credentials for drivers","user":{"login":"dave-tucker","id":3781777,"avatar_url":"https://avatars.githubusercontent.com/u/3781777?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-tucker","html_url":"https://github.com/dave-tucker","followers_url":"https://api.github.com/users/dave-tucker/followers","following_url":"https://api.github.com/users/dave-tucker/following{/other_user}","gists_url":"https://api.github.com/users/dave-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-tucker/subscriptions","organizations_url":"https://api.github.com/users/dave-tucker/orgs","repos_url":"https://api.github.com/users/dave-tucker/repos","events_url":"https://api.github.com/users/dave-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/dave-tucker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-09T17:53:38Z","updated_at":"2015-04-10T20:37:09Z","closed_at":"2015-04-10T20:37:09Z","body":"I find that managing env variables for the various drivers to be a little clumsy. Not only are there issues related to me accidentally putting these in my `.zshrc` which is hosted on GitHub, but it's tricky to manage multiple accounts with the same provider.\r\n\r\nFor example, consider DigitalOcean, where I have a \"personal\" account and a \"company\" account.\r\nTo perform operations on  one, or the other, I'd need to make sure to `source` the correct file first or the API calls would fail.\r\n\r\nI'd like to see something along the lines of:\r\n```\r\ndocker-machine account create -d digitalocean dave\r\n... prompts for the required credentials...\r\nAccount \"dave\" for DigitalOcean created successfully\r\n\r\ndocker-machine account create -d digitalocean work\r\n... prompts for the required credentials...\r\nAccount \"work\" for DigitalOcean created successfully \r\n\r\ndocker-machine create -d digitalocean --account dave\r\n```\r\nI would expect machine to securely store the minimum amount of information required. Perhaps in `~/.docker/accounts`"}}