moby: Docker doesn't release disk space used by `~/Library/Containers/com.docker.docker/`
Output of docker version
:
$ docker version
Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Wed Apr 27 00:34:20 2016
OS/Arch: darwin/amd64
Server:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 8b63c77
Built: Fri Jun 3 08:34:52 2016
OS/Arch: linux/amd64
Trying to update says:
Docker 1.11.1-beta14 is currently the newest version available.
Output of docker info
:
docker info
Containers: 4
Running: 0
Paused: 0
Stopped: 4
Images: 0
Server Version: 1.11.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 27
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.11-moby
Operating System: Alpine Linux v3.3
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.955 GiB
Name: moby
ID: TER2:AI3F:QLVM:OMSA:QBZD:3YEG:HRQN:RTJY:7CBO:Q5IY:4OSG:HJMP
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): true
File Descriptors: 25
Goroutines: 43
System Time: 2016-06-10T15:54:47.675117153Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: nextjournal
Registry: https://index.docker.io/v1/
Additional environment details (AWS, VirtualBox, physical, etc.): OS X 10.11.5 (15F34)
Steps to reproduce the issue:
Delete all images, docker images -a
reports no images installed
Describe the results you received: Docker still uses all the space it once occupied, even after deleting all images:
$ du -h -d 1 ~/Library/Containers/com.docker.docker
25G /Users/kommen/Library/Containers/com.docker.docker/Data
25G /Users/kommen/Library/Containers/com.docker.docker
Describe the results you expected:
Used space released after removing images with docker images -q | xargs docker rmi --force
Additional information you deem important (e.g. issue happens only occasionally):
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 16
- Comments: 26 (7 by maintainers)
Commits related to this issue
- shrink-qcow2 added Because the Mac beta of Docker goes nuts sometimes (https://github.com/docker/docker/issues/23437) — committed to PostlMC/dotfiles by PostlMC 8 years ago
I barely use Docker and my file size is 61Gb. Crazy
The disk image resizing feature is still only on the Beta channel. It should reach the stable channel this week or next week.
@diegolaciar You can reduce Docker’s disk image size in Docker Menu -> Preferences -> Disk. The default size is 64GB, that’s why it appears again when you restart.
I’ve just added this line to my docker Makefiles:
rm -rf ~/Library/Containers/com.docker.docker/Data/*
You’ll have to re-sign-in to docker after that, but comparing to 100Gb of trash - not a big deal.
Had the same problem, from UI, Docker > Reset > Remove All Data has reduced the folder size from 11G to 1.8G.
docker --version Docker version 17.03.1-ce, build c6d412e Having this issue too. How can I develop for docker if I run out of space every 2 days?
For reference the forums thread: https://forums.docker.com/t/docker-doesnt-release-disk-space-used-by-library-containers-com-docker-docker/15194
Mine was 254GB. Deleted and restarted.
oh sorry. I read your comment the wrong way. You said “separate issue tracker” and I read “separate issue”. The new one is attached (above).
@achikin see https://github.com/docker/for-mac/issues/371#issuecomment-298929484