{"action":"created","issue":{"url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/2","labels_url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/2/comments","events_url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/2/events","html_url":"https://github.com/blacktop/docker-nsrl/issues/2","id":111381921,"number":2,"title":"Image size is much bigger than expected","user":{"login":"morallo","id":2017580,"avatar_url":"https://avatars.githubusercontent.com/u/2017580?v=3","gravatar_id":"","url":"https://api.github.com/users/morallo","html_url":"https://github.com/morallo","followers_url":"https://api.github.com/users/morallo/followers","following_url":"https://api.github.com/users/morallo/following{/other_user}","gists_url":"https://api.github.com/users/morallo/gists{/gist_id}","starred_url":"https://api.github.com/users/morallo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morallo/subscriptions","organizations_url":"https://api.github.com/users/morallo/orgs","repos_url":"https://api.github.com/users/morallo/repos","events_url":"https://api.github.com/users/morallo/events{/privacy}","received_events_url":"https://api.github.com/users/morallo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T11:50:35Z","updated_at":"2015-10-14T12:37:23Z","closed_at":null,"body":"Both the image hosted at Docker registry and the one resulting from building it myself take a lot more space than what is stated in the README.\r\n\r\n```\r\nREPOSITORY                TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\nblacktop/nsrl             latest              4cc6af49b07d        About an hour ago   5.558 GB\r\n```\r\n\r\nUnsurprisingly, it's the NSRL downloading step that takes so much space.\r\n\r\n```\r\nIMAGE               CREATED             CREATED BY                                      SIZE                COMMENT\r\n4cc6af49b07d        About an hour ago   /bin/sh -c #(nop) CMD [\"-h\"]                    0 B                 \r\n92c54b8a7f81        About an hour ago   /bin/sh -c #(nop) ENTRYPOINT &{[\"/nsrl/search   0 B                 \r\n6498cf5d9f93        About an hour ago   /bin/sh -c #(nop) WORKDIR /nsrl                 0 B                 \r\ne2df06fe32b7        About an hour ago   /bin/sh -c /nsrl/shrink_nsrl.sh                 5.438 GB            \r\ncd9de869acbe        2 hours ago         /bin/sh -c chmod 755 /nsrl/*                    3.891 kB            \r\n132a9519bc60        2 hours ago         /bin/sh -c #(nop) ADD dir:a6ab31845b3c1fa9dce   3.891 kB            \r\n68844483fff6        2 hours ago         /bin/sh -c apt-get -qq update &&   apt-get in   35.21 MB            \r\n3b1d38ad8cc3        2 hours ago         /bin/sh -c echo '#!/bin/sh\\nexit 101' > /usr/   19 B                \r\n5443d97e0e76        2 hours ago         /bin/sh -c #(nop) MAINTAINER blacktop, https:   0 B                 \r\nb3d362b23ec1        5 months ago        /bin/sh -c #(nop) CMD [\"/bin/bash\"]             0 B                 \r\n21e4345e9035        5 months ago        /bin/sh -c #(nop) ADD file:20cd6318f68d34ca8e   84.98 MB\r\n```\r\n\r\nDo you have any idea why is that? Checking the code in shrink_nsrl.sh, the big files are deleted after creating the bloom filter, so I would expect the temporary files to be \"forgotten\" before docker commits the image layer.\r\n\r\nHow did you achieve the sizes stated in the README? What FS backend do you use for docker?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/comments/148036574","html_url":"https://github.com/blacktop/docker-nsrl/issues/2#issuecomment-148036574","issue_url":"https://api.github.com/repos/blacktop/docker-nsrl/issues/2","id":148036574,"user":{"login":"morallo","id":2017580,"avatar_url":"https://avatars.githubusercontent.com/u/2017580?v=3","gravatar_id":"","url":"https://api.github.com/users/morallo","html_url":"https://github.com/morallo","followers_url":"https://api.github.com/users/morallo/followers","following_url":"https://api.github.com/users/morallo/following{/other_user}","gists_url":"https://api.github.com/users/morallo/gists{/gist_id}","starred_url":"https://api.github.com/users/morallo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morallo/subscriptions","organizations_url":"https://api.github.com/users/morallo/orgs","repos_url":"https://api.github.com/users/morallo/repos","events_url":"https://api.github.com/users/morallo/events{/privacy}","received_events_url":"https://api.github.com/users/morallo/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T12:37:23Z","updated_at":"2015-10-14T12:37:23Z","body":"Ok, confirmed that the current build is broken. the bloom filter is not correctly generated because the NSRL files are not in the expected folder."}}