{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/2579","labels_url":"https://api.github.com/repos/docker/machine/issues/2579/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/2579/comments","events_url":"https://api.github.com/repos/docker/machine/issues/2579/events","html_url":"https://github.com/docker/machine/pull/2579","id":122154103,"number":2579,"title":"introduce dind (Docker in Docker) option to `config` command","user":{"login":"bjaglin","id":349077,"avatar_url":"https://avatars.githubusercontent.com/u/349077?v=3","gravatar_id":"","url":"https://api.github.com/users/bjaglin","html_url":"https://github.com/bjaglin","followers_url":"https://api.github.com/users/bjaglin/followers","following_url":"https://api.github.com/users/bjaglin/following{/other_user}","gists_url":"https://api.github.com/users/bjaglin/gists{/gist_id}","starred_url":"https://api.github.com/users/bjaglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjaglin/subscriptions","organizations_url":"https://api.github.com/users/bjaglin/orgs","repos_url":"https://api.github.com/users/bjaglin/repos","events_url":"https://api.github.com/users/bjaglin/events{/privacy}","received_events_url":"https://api.github.com/users/bjaglin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/group/windows","name":"group/windows","color":"ededed"},{"url":"https://api.github.com/repos/docker/machine/labels/status/0-triage","name":"status/0-triage","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-14T23:13:47Z","updated_at":"2015-12-15T00:39:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/2579","html_url":"https://github.com/docker/machine/pull/2579","diff_url":"https://github.com/docker/machine/pull/2579.diff","patch_url":"https://github.com/docker/machine/pull/2579.patch"},"body":"I am using [Crane](https://github.com/michaelsauter/crane) within a container to orchestrate a remote engine. If I setup my local client to use the remote engine, the orchestration container is spawned remotely, so I can't bind-mount any configuration into it. The `--dind` flag introduced in that PR allows me to run a local orchestrator onto which I can bind-mount, yet still pointing at my remote target.\r\n\r\nI first thought about extending the `env` command, but I ended up putting in `config`, although neither of them feels 100% right...\r\n\r\nI have not tested the functionality from a Windows client, but as far as I can tell (which is not much because command substitution is very limited, so even the existing `config` might be tricky), all is taken care in terms of spaces and specificities of the Windows filesystem mounts."},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/164604884","html_url":"https://github.com/docker/machine/pull/2579#issuecomment-164604884","issue_url":"https://api.github.com/repos/docker/machine/issues/2579","id":164604884,"user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T00:39:14Z","updated_at":"2015-12-15T00:39:14Z","body":"Hi @bjaglin, thanks a lot for the PR.  While I appreciate the contribution, I think it is a bit out of scope for what the `config` command in Machine today is intended to do.\r\n\r\nMaybe a shell function + `inspect -f` might work for your use case?\r\n\r\nIs there anything smaller in scope we could implement to help enable your use case?"}}