{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/official-images/issues/440","labels_url":"https://api.github.com/repos/docker-library/official-images/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/official-images/issues/440/comments","events_url":"https://api.github.com/repos/docker-library/official-images/issues/440/events","html_url":"https://github.com/docker-library/official-images/pull/440","id":55840569,"number":440,"title":"Add swarm to official images.","user":{"login":"aluzzardi","id":179503,"avatar_url":"https://avatars.githubusercontent.com/u/179503?v=3","gravatar_id":"","url":"https://api.github.com/users/aluzzardi","html_url":"https://github.com/aluzzardi","followers_url":"https://api.github.com/users/aluzzardi/followers","following_url":"https://api.github.com/users/aluzzardi/following{/other_user}","gists_url":"https://api.github.com/users/aluzzardi/gists{/gist_id}","starred_url":"https://api.github.com/users/aluzzardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluzzardi/subscriptions","organizations_url":"https://api.github.com/users/aluzzardi/orgs","repos_url":"https://api.github.com/users/aluzzardi/repos","events_url":"https://api.github.com/users/aluzzardi/events{/privacy}","received_events_url":"https://api.github.com/users/aluzzardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-29T00:59:44Z","updated_at":"2015-01-29T18:44:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker-library/official-images/pulls/440","html_url":"https://github.com/docker-library/official-images/pull/440","diff_url":"https://github.com/docker-library/official-images/pull/440.diff","patch_url":"https://github.com/docker-library/official-images/pull/440.patch"},"body":"This is in order to distribute `swarm` as an official image so that it can be used as simply as:\r\n\r\n`docker run swarm`"},"comment":{"url":"https://api.github.com/repos/docker-library/official-images/issues/comments/72080091","html_url":"https://github.com/docker-library/official-images/pull/440#issuecomment-72080091","issue_url":"https://api.github.com/repos/docker-library/official-images/issues/440","id":72080091,"user":{"login":"yosifkit","id":896423,"avatar_url":"https://avatars.githubusercontent.com/u/896423?v=3","gravatar_id":"","url":"https://api.github.com/users/yosifkit","html_url":"https://github.com/yosifkit","followers_url":"https://api.github.com/users/yosifkit/followers","following_url":"https://api.github.com/users/yosifkit/following{/other_user}","gists_url":"https://api.github.com/users/yosifkit/gists{/gist_id}","starred_url":"https://api.github.com/users/yosifkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosifkit/subscriptions","organizations_url":"https://api.github.com/users/yosifkit/orgs","repos_url":"https://api.github.com/users/yosifkit/repos","events_url":"https://api.github.com/users/yosifkit/events{/privacy}","received_events_url":"https://api.github.com/users/yosifkit/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T18:44:40Z","updated_at":"2015-01-29T18:44:40Z","body":"+1 on @psftw's changes.  If we want a really tiny dockerfile for releases (the current one is great for building), we could do something like the following:\r\n\r\n```Dockerfile\r\nFROM debian:jessie\r\n\r\nRUN apt-get update \\\r\n\t&& apt-get install -y --no-install-recommends ca-certificates \\\r\n\t&& rm -rf /var/lib/apt/lists/*\r\n\r\nENV SWARM_VERSION 0.1.0-rc2\r\n\r\nRUN apt-get update \\\r\n\t&& apt-get install -y --no-install-recommends curl \\\r\n\t&& rm -rf /var/lib/apt/lists/* \\\r\n\t&& curl -SL \"https://github.com/docker/swarm/releases/download/v${SWARM_VERSION}/docker-swarm_linux-amd64\" -o /usr/local/bin/swarm \\\r\n\t&& chmod +x /usr/local/bin/swarm \\\r\n\t&& apt-get purge -y --auto-remove curl\r\n\r\nCMD [ \"swarm\" ]\r\n```\r\n\r\nThis comes in at ~142 MB."}}