{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/rabbitmq/issues/30","labels_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/30/comments","events_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/30/events","html_url":"https://github.com/docker-library/rabbitmq/pull/30","id":92449017,"number":30,"title":"Improve \".erlang.cookie\" file management by adding RABBITMQ_ERLANG_COOKIE for specifying it directly","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-01T18:04:41Z","updated_at":"2015-07-06T19:14:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/30","html_url":"https://github.com/docker-library/rabbitmq/pull/30","diff_url":"https://github.com/docker-library/rabbitmq/pull/30.diff","patch_url":"https://github.com/docker-library/rabbitmq/pull/30.patch"},"body":"This allows for direct, simple control over the contents of the `.erlang.cookie` file, which allows for much simpler container interconnections.\r\n\r\nThis also symlinks that file into `/root` so that the root user will pick it up properly without additional changes.\r\n\r\nCloses #25\r\nFixes #29\r\n\r\nAs an example of what this enables:\r\n```console\r\n$ docker run -it -d --name rabbit --hostname some-hostname -e RABBITMQ_ERLANG_COOKIE='something something something' rabbitmq\r\n$ docker exec -it rabbit rabbitmqctl list_users\r\nListing users ...\r\nguest\t[administrator]\r\n$ docker run -it --rm --link rabbit:some-hostname -e RABBITMQ_ERLANG_COOKIE='something something something' rabbitmq bash\r\nroot@d2f270ad4fba:/# rabbitmqctl -n rabbit@some-hostname list_users\r\nListing users ...\r\nguest\t[administrator]\r\n```"},"comment":{"url":"https://api.github.com/repos/docker-library/rabbitmq/issues/comments/118967450","html_url":"https://github.com/docker-library/rabbitmq/pull/30#issuecomment-118967450","issue_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/30","id":118967450,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T19:14:23Z","updated_at":"2015-07-06T19:14:23Z","body":"Yeah, the point here is that we don't do hacky things to help you orchestrate RabbitMQ (ie, performing some initialization tasks after bring-up), but making those easier to do is definitely a solid goal (which is what this is doing).  Now you can just as easily `rabbitmqctl` via `docker exec` as you can via `docker run --link`. :+1:"}}