{"action":"closed","issue":{"url":"https://api.github.com/repos/crosbymichael/dockerui/issues/122","labels_url":"https://api.github.com/repos/crosbymichael/dockerui/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/crosbymichael/dockerui/issues/122/comments","events_url":"https://api.github.com/repos/crosbymichael/dockerui/issues/122/events","html_url":"https://github.com/crosbymichael/dockerui/issues/122","id":81833935,"number":122,"title":"`-e` flag clashes with docker's syntax for environment variables","user":{"login":"dfyx","id":458055,"avatar_url":"https://avatars.githubusercontent.com/u/458055?v=3","gravatar_id":"","url":"https://api.github.com/users/dfyx","html_url":"https://github.com/dfyx","followers_url":"https://api.github.com/users/dfyx/followers","following_url":"https://api.github.com/users/dfyx/following{/other_user}","gists_url":"https://api.github.com/users/dfyx/gists{/gist_id}","starred_url":"https://api.github.com/users/dfyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfyx/subscriptions","organizations_url":"https://api.github.com/users/dfyx/orgs","repos_url":"https://api.github.com/users/dfyx/repos","events_url":"https://api.github.com/users/dfyx/events{/privacy}","received_events_url":"https://api.github.com/users/dfyx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T08:53:14Z","updated_at":"2015-05-28T13:00:21Z","closed_at":"2015-05-28T13:00:21Z","body":"The `-e` flag to set a different socket clashes with docker's builtin syntax to set environment variables. I noticed this when running dockerui together with [nginx-proxy](https://github.com/jwilder/nginx-proxy) which works by setting `-e VIRTUAL_HOST=whatever.example.com` on the target container:\r\n\r\n```\r\ndocker run -d --privileged -e VIRTUAL_HOST=dockerui.example.com -v /var/run/docker.sock:/var/run/docker.sock dockerui/dockerui\r\n```\r\n\r\nUnfortunately dockerui interprets this as setting the socket location to `VIRTUALHOST=dockerui.example.com` which causes most functions to fail.\r\n\r\nMy proposal would be to use an environment variable (like `SOCKET_PATH` or `SOCKET_LOCATION`) to set the socket path."}}