{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/docker-squash/issues/36","labels_url":"https://api.github.com/repos/jwilder/docker-squash/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/docker-squash/issues/36/comments","events_url":"https://api.github.com/repos/jwilder/docker-squash/issues/36/events","html_url":"https://github.com/jwilder/docker-squash/issues/36","id":114670043,"number":36,"title":"Not Squashing....","user":{"login":"2devnull","id":4563854,"avatar_url":"https://avatars.githubusercontent.com/u/4563854?v=3","gravatar_id":"","url":"https://api.github.com/users/2devnull","html_url":"https://github.com/2devnull","followers_url":"https://api.github.com/users/2devnull/followers","following_url":"https://api.github.com/users/2devnull/following{/other_user}","gists_url":"https://api.github.com/users/2devnull/gists{/gist_id}","starred_url":"https://api.github.com/users/2devnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2devnull/subscriptions","organizations_url":"https://api.github.com/users/2devnull/orgs","repos_url":"https://api.github.com/users/2devnull/repos","events_url":"https://api.github.com/users/2devnull/events{/privacy}","received_events_url":"https://api.github.com/users/2devnull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-02T19:45:35Z","updated_at":"2015-11-02T20:02:47Z","closed_at":null,"body":"Trying to squashed a Debian Jessie image I removed several item with using:\r\n\r\n```\r\napt-get update && \\\r\n    apt-get upgrade -y && \\\r\n    apt-get clean -y && \\\r\n    apt-get autoclean -y && \\\r\n    apt-get autoremove -y && \\\r\n    rm -rf /usr/share/locale/* && \\\r\n    rm -rf /var/cache/debconf/*-old && \\\r\n    rm -rf /var/lib/apt/lists/* && \\\r\n    rm -rf /usr/share/doc/* && \\\r\n    exit\r\n```\r\n\r\nHowever, the image after running docker squash is still the same size:\r\n\r\n```\r\nrancher@ranchero:~$ docker save 9b58925bbb33 | sudo ./docker-squash -from root -t raido/min-jessie -verbose | docker load\r\nLoading export from STDIN using /tmp/docker-squash029083388 for tempdir\r\nLoaded image w/ 3 layers\r\nExtracting layers...\r\n  -  /tmp/docker-squash029083388/d0ca40da9e35b5da0b9f2859242ded0dd868d5244b73f4e72226f72012358e96/layer.tar\r\n  -  /tmp/docker-squash029083388/d1f66aef36c95d9c80da2c35a51c432c7cb12f7033377b7c22263870cf1f2295/layer.tar\r\n  -  /tmp/docker-squash029083388/9b58925bbb33968daf4a10efb4ed4ed0b0c036b033d4c2d666d986a096a3bdce/layer.tar\r\nInserted new layer d8dd2e1f8a00 after d0ca40da9e35\r\n  -  d0ca40da9e35 /bin/sh -c #(nop) ADD file:5f0fca122586fe4ea79c5f22acef96c38\r\n  -> d8dd2e1f8a00 /bin/sh -c #(squash) from d0ca40da9e35\r\n  -  d1f66aef36c9 /bin/sh -c #(nop) CMD [\"/bin/bash\"]\r\n  -  9b58925bbb33 /bin/bash\r\nSquashing from d8dd2e1f8a00 into d8dd2e1f8a00\r\n  -  Deleting whiteouts for layer d1f66aef36c9\r\n  -  Deleting whiteouts for layer 9b58925bbb33\r\n  -  Rewriting child history\r\n  -  Replacing d1f66aef36c9 w/ new layer fbb3358df2b7 (/bin/sh -c #(nop) CMD [\"/bin/bash\"])\r\n  -  Removing 9b58925bbb33. Squashed. (/bin/bash)\r\nTarring up squashed layer d8dd2e1f8a00\r\nRemoving extracted layers\r\nTagging fbb3358df2b7 as raido/min-jessie:latest\r\nTarring new image to STDOUT\r\nDone. New image created.\r\n  -  d0ca40da9e35 10 days /bin/sh -c #(nop) ADD file:5f0fca122586fe4ea79c5f22acef96... 130.9 MB\r\n  -  d8dd2e1f8a00 1 seconds /bin/sh -c #(squash) from d0ca40da9e35 10.24 kB\r\n  -  fbb3358df2b7 1 seconds /bin/sh -c #(nop) CMD [\"/bin/bash\"] 1.024 kB\r\nRemoving tempdir /tmp/docker-squash029083388\r\nrancher@rancheros:~$ docker images\r\nREPOSITORY               TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\nraido/min-jessie      latest              fbb3358df2b7        12 seconds ago      125.1 MB\r\ndebian                   jessie              d1f66aef36c9        10 days ago         125.1 MB\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/jwilder/docker-squash/issues/comments/153141238","html_url":"https://github.com/jwilder/docker-squash/issues/36#issuecomment-153141238","issue_url":"https://api.github.com/repos/jwilder/docker-squash/issues/36","id":153141238,"user":{"login":"2devnull","id":4563854,"avatar_url":"https://avatars.githubusercontent.com/u/4563854?v=3","gravatar_id":"","url":"https://api.github.com/users/2devnull","html_url":"https://github.com/2devnull","followers_url":"https://api.github.com/users/2devnull/followers","following_url":"https://api.github.com/users/2devnull/following{/other_user}","gists_url":"https://api.github.com/users/2devnull/gists{/gist_id}","starred_url":"https://api.github.com/users/2devnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2devnull/subscriptions","organizations_url":"https://api.github.com/users/2devnull/orgs","repos_url":"https://api.github.com/users/2devnull/repos","events_url":"https://api.github.com/users/2devnull/events{/privacy}","received_events_url":"https://api.github.com/users/2devnull/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T20:02:47Z","updated_at":"2015-11-02T20:02:47Z","body":"https://hub.docker.com/r/2devnull/min-jessie/"}}