{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10987","labels_url":"https://api.github.com/repos/docker/docker/issues/10987/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10987/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10987/events","html_url":"https://github.com/docker/docker/issues/10987","id":58792921,"number":10987,"title":"Question about apt-get in Debian base images","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T19:42:02Z","updated_at":"2015-02-24T20:39:12Z","closed_at":null,"body":"I received this ticket https://github.com/phundament/docker/issues/3 in my project.\r\n\r\nSo I investigated the issue and saw this code and comments in the debian base image:\r\n\r\n```\r\n# Note that we do realize this isn't the ideal way to do this, and are always\r\n# open to better suggestions (https://github.com/docker/docker/issues).\r\n# Since Docker users using \"RUN apt-get update && apt-get install -y ...\" in\r\n# their Dockerfiles don't go delete the lists files afterwards, we want them to\r\n# be as small as possible on-disk, so we explicitly request \"gz\" versions and\r\n# tell Apt to keep them gzipped on-disk.\r\n\r\n# For comparison, an \"apt-get update\" layer without this on a pristine\r\n# \"debian:wheezy\" base image was \"29.88 MB\", where with this it was only\r\n# \"8.273 MB\".\r\n\r\nAcquire::GzipIndexes \"true\";\r\nAcquire::CompressionTypes::Order:: \"gz\";\r\n# In Docker, we don't often need the \"Translations\" files, so we're just wasting\r\n# time and space by downloading them, and this inhibits that.  For users that do\r\n# need them, it's a simple matter to delete this file and \"apt-get update\". :)\r\n\r\nAcquire::Languages \"none\";\r\n```\r\n\r\nWhat I didn't find was `RUN echo \"Acquire::http {No-Cache=True;};\" > /etc/apt/apt.conf.d/no-cache` - although it's discussed here: https://github.com/docker/docker/issues/824\r\n\r\nMy question is - do we don't need this, since it only adds an No-Cache header to APT http requests or is it missing or did I simply not find it?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/75840776","html_url":"https://github.com/docker/docker/issues/10987#issuecomment-75840776","issue_url":"https://api.github.com/repos/docker/docker/issues/10987","id":75840776,"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-02-24T20:39:12Z","updated_at":"2015-02-24T20:39:12Z","body":"The Debian image is generated via https://github.com/docker/docker/blob/d0bc3537d7cc7f152842c7d21c9eae85e0a95a4c/contrib/mkimage/debootstrap.  The PR/context you're looking for is #2038, which is where we removed `No-Cache=true` since it wasn't doing at all what we originally thought it was supposed to (and has more to do with proxies)."}}