{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26108","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26108/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26108/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26108/events","html_url":"https://github.com/docker/docker/pull/26108","id":173823829,"number":26108,"title":"New Data Management commands","user":{"login":"mlaventure","id":16065150,"avatar_url":"https://avatars.githubusercontent.com/u/16065150?v=3","gravatar_id":"","url":"https://api.github.com/users/mlaventure","html_url":"https://github.com/mlaventure","followers_url":"https://api.github.com/users/mlaventure/followers","following_url":"https://api.github.com/users/mlaventure/following{/other_user}","gists_url":"https://api.github.com/users/mlaventure/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaventure/subscriptions","organizations_url":"https://api.github.com/users/mlaventure/orgs","repos_url":"https://api.github.com/users/mlaventure/repos","events_url":"https://api.github.com/users/mlaventure/events{/privacy}","received_events_url":"https://api.github.com/users/mlaventure/received_events","type":"User","site_admin":false},"labels":[{"id":237472255,"url":"https://api.github.com/repos/docker/docker/labels/impact/api","name":"impact/api","color":"bfe5bf","default":false},{"id":237472270,"url":"https://api.github.com/repos/docker/docker/labels/impact/changelog","name":"impact/changelog","color":"bfe5bf","default":false},{"id":237472313,"url":"https://api.github.com/repos/docker/docker/labels/impact/cli","name":"impact/cli","color":"bfe5bf","default":false},{"id":450032382,"url":"https://api.github.com/repos/docker/docker/labels/impact/documentation","name":"impact/documentation","color":"bfe5bf","default":false},{"id":175375598,"url":"https://api.github.com/repos/docker/docker/labels/status/4-merge","name":"status/4-merge","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"mlaventure","id":16065150,"avatar_url":"https://avatars.githubusercontent.com/u/16065150?v=3","gravatar_id":"","url":"https://api.github.com/users/mlaventure","html_url":"https://github.com/mlaventure","followers_url":"https://api.github.com/users/mlaventure/followers","following_url":"https://api.github.com/users/mlaventure/following{/other_user}","gists_url":"https://api.github.com/users/mlaventure/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaventure/subscriptions","organizations_url":"https://api.github.com/users/mlaventure/orgs","repos_url":"https://api.github.com/users/mlaventure/repos","events_url":"https://api.github.com/users/mlaventure/events{/privacy}","received_events_url":"https://api.github.com/users/mlaventure/received_events","type":"User","site_admin":false},"assignees":[{"login":"mlaventure","id":16065150,"avatar_url":"https://avatars.githubusercontent.com/u/16065150?v=3","gravatar_id":"","url":"https://api.github.com/users/mlaventure","html_url":"https://github.com/mlaventure","followers_url":"https://api.github.com/users/mlaventure/followers","following_url":"https://api.github.com/users/mlaventure/following{/other_user}","gists_url":"https://api.github.com/users/mlaventure/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaventure/subscriptions","organizations_url":"https://api.github.com/users/mlaventure/orgs","repos_url":"https://api.github.com/users/mlaventure/repos","events_url":"https://api.github.com/users/mlaventure/events{/privacy}","received_events_url":"https://api.github.com/users/mlaventure/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/56","html_url":"https://github.com/docker/docker/milestone/56","labels_url":"https://api.github.com/repos/docker/docker/milestones/56/labels","id":1839404,"number":56,"title":"1.13.0","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":104,"closed_issues":1219,"state":"open","created_at":"2016-06-20T22:51:25Z","updated_at":"2016-12-13T20:18:55Z","due_on":null,"closed_at":null},"comments":37,"created_at":"2016-08-29T17:13:04Z","updated_at":"2016-12-13T20:48:04Z","closed_at":"2016-10-01T03:17:18Z","pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/26108","html_url":"https://github.com/docker/docker/pull/26108","diff_url":"https://github.com/docker/docker/pull/26108.diff","patch_url":"https://github.com/docker/docker/pull/26108.patch"},"body":"This PR introduce a few new commands to help facilitate visualising how much space the docker daemon data is taking on disk and allowing for easily cleaning up \"unneeded\" excess.\n- `docker system df` presents a summary of the space currently used by different docker objects:\n\n```\nTYPE                TOTAL               ACTIVE              SIZE                UNUSED\nImages              5                   2                   16.43 MB            11.63 MB (70%)\nContainers          2                   0                   212 B               212 B (100%)\nLocal Volumes             2                   1                   36 B                0 B (0%)\n```\n- `docker system df -v` expends on the previous with more details:\n\n```\nImages space usage:\n\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE                SHARED SIZE         UNIQUE SIZE         CONTAINERS\nmy-curl             latest              b2789dd875bf        6 minutes ago       11 MB               11 MB               5 B                 0\nmy-jq               latest              ae67841be6d0        6 minutes ago       9.623 MB            8.991 MB            632.1 kB            0\n<none>              <none>              a0971c4015c1        6 minutes ago       11 MB               11 MB               0 B                 0\nalpine              latest              4e38e38c8ce0        9 weeks ago         4.799 MB            0 B                 4.799 MB            1\nalpine              3.3                 47cf20d8c26c        9 weeks ago         4.797 MB            4.797 MB            0 B                 1\n\nContainers space usage:\n\nCONTAINER ID        IMAGE               COMMAND             LOCAL VOLUMES       SIZE                CREATED             STATUS                      NAMES\n4a7f7eebae0f        alpine:latest       \"sh\"                1                   0 B                 16 minutes ago      Exited (0) 5 minutes ago    hopeful_yalow\nf98f9c2aa1ea        alpine:3.3          \"sh\"                1                   212 B               16 minutes ago      Exited (0) 48 seconds ago   anon-vol\n\nLocal Volumes space usage:\n\nNAME                                                               LINKS               SIZE\n07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e   2                   36 B\nmy-named-vol                                                       0                   0 B\n```\n- `docker system prune` will delete **ALL** unused data (i.e. In order: containers stopped, volumes without containers and images with no containers):\n\n```\nWARNING! This will remove:\n    - all stopped containers\n    - all volumes not used by at least one container\n    - all images without at least one container associated to them\nAre you sure you want to continue? [y/N] y\nDeleted Containers:\n4a7f7eebae0f63178aff7eb0aa39cd3f0627a203ab2df258c1a00b456cf20063\nf98f9c2aa1eaf727e4ec9c0283bc7d4aa4762fbdba7f26191f26c97f64090360\n\nDeleted Volumes:\n07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e\nmy-named-vol\n\nDeleted Images:\nuntagged: alpine:latest\nuntagged: alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a\ndeleted: sha256:4e38e38c8ce0b8d9041a9c4fefe786631d1416225e13b0bfe8cfa2321aec4bba\ndeleted: sha256:4fe15f8d0ae69e169824f25f1d4da3015a48feeeeebb265cd2e328e15c6a869f\nuntagged: alpine:3.3\nuntagged: alpine@sha256:4fa633f4feff6a8f02acfc7424efd5cb3e76686ed3218abf4ca0fa4a2a358423\nuntagged: my-jq:latest\ndeleted: sha256:ae67841be6d008a374eff7c2a974cde3934ffe9536a7dc7ce589585eddd83aff\ndeleted: sha256:34f6f1261650bc341eb122313372adc4512b4fceddc2a7ecbb84f0958ce5ad65\ndeleted: sha256:cf4194e8d8db1cb2d117df33f2c75c0369c3a26d96725efb978cc69e046b87e7\nuntagged: my-curl:latest\ndeleted: sha256:b2789dd875bf427de7f9f6ae001940073b3201409b14aba7e5db71f408b8569e\ndeleted: sha256:96daac0cb203226438989926fc34dd024f365a9a8616b93e168d303cfe4cb5e9\ndeleted: sha256:5cbd97a14241c9cd83250d6b6fc0649833c4a3e84099b968dd4ba403e609945e\ndeleted: sha256:a0971c4015c1e898c60bf95781c6730a05b5d8a2ae6827f53837e6c9d38efdec\ndeleted: sha256:d8359ca3b681cc5396a4e790088441673ed3ce90ebc04de388bfcd31a0716b06\ndeleted: sha256:83fc9ba8fb70e1da31dfcc3c88d093831dbd4be38b34af998df37e8ac538260c\ndeleted: sha256:ae7041a4cc625a9c8e6955452f7afe602b401f662671cea3613f08f3d9343b35\ndeleted: sha256:35e0f43a37755b832f0bbea91a2360b025ee351d7309dae0d9737bc96b6d0809\ndeleted: sha256:0af941dd29f00e4510195dd00b19671bc591e29d1495630e7e0f7c44c1e6a8c0\ndeleted: sha256:9fc896fc2013da84f84e45b3096053eb084417b42e6b35ea0cce5a3529705eac\ndeleted: sha256:47cf20d8c26c46fff71be614d9f54997edacfe8d46d51769706e5aba94b16f2b\ndeleted: sha256:2c675ee9ed53425e31a13e3390bf3f539bf8637000e4bcfbb85ee03ef4d910a1\n\nTotal reclaimed space: 17 MB\n```\n- `docker container prune` will delete all stopped containers:\n\n```\nWARNING! This will remove all stopped containers.\nAre you sure you want to continue? [y/N] y\nDeleted Containers:\n4a7f7eebae0f63178aff7eb0aa39cd3f0627a203ab2df258c1a00b456cf20063\nf98f9c2aa1eaf727e4ec9c0283bc7d4aa4762fbdba7f26191f26c97f64090360\n\nTotal reclaimed space: 212 B\n```\n- `docker volume prune` will delete all volume without associated containers:\n\n```\nWARNING! This will remove all volumes not used by at least one container.\nAre you sure you want to continue? [y/N] y\nDeleted Volumes:\n07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e\nmy-named-vol\n\nTotal reclaimed space: 36 B\n```\n-  `docker image prune` will delete all image without associated containers:\n\n```\nWARNING! This will remove all images without at least one container associated to them.\nAre you sure you want to continue? [y/N] y\nDeleted Images:\nuntagged: alpine:latest\nuntagged: alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a\ndeleted: sha256:4e38e38c8ce0b8d9041a9c4fefe786631d1416225e13b0bfe8cfa2321aec4bba\ndeleted: sha256:4fe15f8d0ae69e169824f25f1d4da3015a48feeeeebb265cd2e328e15c6a869f\nuntagged: alpine:3.3\nuntagged: alpine@sha256:4fa633f4feff6a8f02acfc7424efd5cb3e76686ed3218abf4ca0fa4a2a358423\nuntagged: my-jq:latest\ndeleted: sha256:ae67841be6d008a374eff7c2a974cde3934ffe9536a7dc7ce589585eddd83aff\ndeleted: sha256:34f6f1261650bc341eb122313372adc4512b4fceddc2a7ecbb84f0958ce5ad65\ndeleted: sha256:cf4194e8d8db1cb2d117df33f2c75c0369c3a26d96725efb978cc69e046b87e7\nuntagged: my-curl:latest\ndeleted: sha256:b2789dd875bf427de7f9f6ae001940073b3201409b14aba7e5db71f408b8569e\ndeleted: sha256:96daac0cb203226438989926fc34dd024f365a9a8616b93e168d303cfe4cb5e9\ndeleted: sha256:5cbd97a14241c9cd83250d6b6fc0649833c4a3e84099b968dd4ba403e609945e\ndeleted: sha256:a0971c4015c1e898c60bf95781c6730a05b5d8a2ae6827f53837e6c9d38efdec\ndeleted: sha256:d8359ca3b681cc5396a4e790088441673ed3ce90ebc04de388bfcd31a0716b06\ndeleted: sha256:83fc9ba8fb70e1da31dfcc3c88d093831dbd4be38b34af998df37e8ac538260c\ndeleted: sha256:ae7041a4cc625a9c8e6955452f7afe602b401f662671cea3613f08f3d9343b35\ndeleted: sha256:35e0f43a37755b832f0bbea91a2360b025ee351d7309dae0d9737bc96b6d0809\ndeleted: sha256:0af941dd29f00e4510195dd00b19671bc591e29d1495630e7e0f7c44c1e6a8c0\ndeleted: sha256:9fc896fc2013da84f84e45b3096053eb084417b42e6b35ea0cce5a3529705eac\ndeleted: sha256:47cf20d8c26c46fff71be614d9f54997edacfe8d46d51769706e5aba94b16f2b\ndeleted: sha256:2c675ee9ed53425e31a13e3390bf3f539bf8637000e4bcfbb85ee03ef4d910a1\n\nTotal reclaimed space: 16.43 MB\n```\n## \n\nThings left to do:\n- [x] ~~Add the documentation for the new commands~~\n- [x] Proper vendoring\n## \n\nRelates to #18601\nFixes #9054.\nCloses #22871.\nCloses https://github.com/docker/docker/issues/15331\n~~Depends on  #26025~~ (merged)\n\nping @dnephin @tonistiigi @icecrime \n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/266857293","html_url":"https://github.com/docker/docker/pull/26108#issuecomment-266857293","issue_url":"https://api.github.com/repos/docker/docker/issues/26108","id":266857293,"user":{"login":"mmlkrx","id":5080687,"avatar_url":"https://avatars.githubusercontent.com/u/5080687?v=3","gravatar_id":"","url":"https://api.github.com/users/mmlkrx","html_url":"https://github.com/mmlkrx","followers_url":"https://api.github.com/users/mmlkrx/followers","following_url":"https://api.github.com/users/mmlkrx/following{/other_user}","gists_url":"https://api.github.com/users/mmlkrx/gists{/gist_id}","starred_url":"https://api.github.com/users/mmlkrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmlkrx/subscriptions","organizations_url":"https://api.github.com/users/mmlkrx/orgs","repos_url":"https://api.github.com/users/mmlkrx/repos","events_url":"https://api.github.com/users/mmlkrx/events{/privacy}","received_events_url":"https://api.github.com/users/mmlkrx/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T20:48:04Z","updated_at":"2016-12-13T20:48:04Z","body":"I'm having issues with `docker system prune` on Mac. It doesn't seem to actually make the pruned files available as storage in macOS Sierra. When I check About this Mac > Storage I just have a lot of \"system\" storage blocked. Any ideas how to free this up?"}}
{"actor":{"display_login":"mmlkrx"}}