{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22072","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22072/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22072/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22072/events","html_url":"https://github.com/docker/docker/issues/22072","id":148681282,"number":22072,"title":"Repeating rootfs layers","user":{"login":"xificurC","id":4800719,"avatar_url":"https://avatars.githubusercontent.com/u/4800719?v=3","gravatar_id":"","url":"https://api.github.com/users/xificurC","html_url":"https://github.com/xificurC","followers_url":"https://api.github.com/users/xificurC/followers","following_url":"https://api.github.com/users/xificurC/following{/other_user}","gists_url":"https://api.github.com/users/xificurC/gists{/gist_id}","starred_url":"https://api.github.com/users/xificurC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xificurC/subscriptions","organizations_url":"https://api.github.com/users/xificurC/orgs","repos_url":"https://api.github.com/users/xificurC/repos","events_url":"https://api.github.com/users/xificurC/events{/privacy}","received_events_url":"https://api.github.com/users/xificurC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T14:51:37Z","updated_at":"2016-04-15T15:38:57Z","closed_at":null,"body":"**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.0\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   4dc5990\r\n Built:        Wed Apr 13 18:34:23 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.0\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   4dc5990\r\n Built:        Wed Apr 13 18:34:23 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 16\r\n Running: 0\r\n Paused: 0\r\n Stopped: 16\r\nImages: 175\r\nServer Version: 1.11.0\r\nStorage Driver: aufs\r\n Root Dir: /home/UX/pnagyux/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 308\r\n Dirperm1 Supported: false\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: host bridge null\r\nKernel Version: 3.13.0-85-generic\r\nOperating System: Ubuntu 14.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 8\r\nTotal Memory: 15.6 GiB\r\nName: pnagyubupc\r\nID: 6ISS:ZOS6:DTPJ:7Z3M:QP73:FHLH:B452:XHQW:GCBP:UKHG:RAK3:SGEB\r\nDocker Root Dir: /home/UX/pnagyux/docker\r\nDebug mode (client): false\r\nDebug mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. `docker pull nginx:alpine`\r\n2. `docker inspect`\r\n3.\r\n\r\n**Describe the results you received:**\r\nThe rootfs layers are repeating\r\n\r\n**Describe the results you expected:**\r\nDifferent rootfs layers.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nI found many, really many images sharing an actual sha digest - `sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef` . Is this a bug of the inspect command or is there some dark magic happening in the background that creates layers with the same digest?\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/210510562","html_url":"https://github.com/docker/docker/issues/22072#issuecomment-210510562","issue_url":"https://api.github.com/repos/docker/docker/issues/22072","id":210510562,"user":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T15:38:57Z","updated_at":"2016-04-15T15:38:57Z","body":"`5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef` is the hash for empty tar, 1024 zero bytes. This happens for images built before `v1.10`, after that empty layers are not put into image configuration any more."}}