{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18346","labels_url":"https://api.github.com/repos/docker/docker/issues/18346/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18346/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18346/events","html_url":"https://github.com/docker/docker/issues/18346","id":119802349,"number":18346,"title":"use env in the run command file from the env_file","user":{"login":"vipconsult","id":8903888,"avatar_url":"https://avatars.githubusercontent.com/u/8903888?v=3","gravatar_id":"","url":"https://api.github.com/users/vipconsult","html_url":"https://github.com/vipconsult","followers_url":"https://api.github.com/users/vipconsult/followers","following_url":"https://api.github.com/users/vipconsult/following{/other_user}","gists_url":"https://api.github.com/users/vipconsult/gists{/gist_id}","starred_url":"https://api.github.com/users/vipconsult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vipconsult/subscriptions","organizations_url":"https://api.github.com/users/vipconsult/orgs","repos_url":"https://api.github.com/users/vipconsult/repos","events_url":"https://api.github.com/users/vipconsult/events{/privacy}","received_events_url":"https://api.github.com/users/vipconsult/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-01T20:36:10Z","updated_at":"2015-12-03T19:36:27Z","closed_at":null,"body":"I follow up from the docker-compose issue\r\nhttps://github.com/docker/compose/issues/2482\r\n\r\nI use docker compose to deploy 2 servers with the same compose file and the only difference are some ENV variables set in an external env file which is not tracked in git\r\n\r\n\r\ndocker run -p ${INTERNAL_IP}:222:222 --env-file ./env.list lsyncd \r\nwhere INTERNAL_IP is set in the env file\r\n\r\n$ cat ./env.list\r\nINTERNAL_IP=170.0.0.1\r\n\r\nin docker-compose it makes a lot more sense , but do you think this would could be implemented in docker so that docker-compose can use the same principal ?\r\n\r\nThe case is that I use the same docker-compose file to run 2x lsyncd containers to keep some files synced between 2 hosts and the only difference is the ip address they need to connect and listen to.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/161756910","html_url":"https://github.com/docker/docker/issues/18346#issuecomment-161756910","issue_url":"https://api.github.com/repos/docker/docker/issues/18346","id":161756910,"user":{"login":"dnephin","id":442180,"avatar_url":"https://avatars.githubusercontent.com/u/442180?v=3","gravatar_id":"","url":"https://api.github.com/users/dnephin","html_url":"https://github.com/dnephin","followers_url":"https://api.github.com/users/dnephin/followers","following_url":"https://api.github.com/users/dnephin/following{/other_user}","gists_url":"https://api.github.com/users/dnephin/gists{/gist_id}","starred_url":"https://api.github.com/users/dnephin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnephin/subscriptions","organizations_url":"https://api.github.com/users/dnephin/orgs","repos_url":"https://api.github.com/users/dnephin/repos","events_url":"https://api.github.com/users/dnephin/events{/privacy}","received_events_url":"https://api.github.com/users/dnephin/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T19:36:27Z","updated_at":"2015-12-03T19:36:27Z","body":"I think you could use that command as long as you escape the `$` on the command line:\r\n\r\n```\r\ndocker run -d user/mariadb mysqld '--wsrep_cluster_address=gcomm://${LB_SERVER}'\r\n```"}}