Docker Community Forums

Share and learn in the Docker community.

Windows usage threshold warning although I see space free


(Krishna81m) #1

I see 30 GB free out of 200 GB.

[warn 2016/01/28 09:37:10.657 UTC tid=0x20] The disk volume . for disk store DEFAULT has exceeded the warning usage threshold and is 92% full

MINGW64 ~
$ df -h
Filesystem                                       Size  Used Avail Use% Mounted on
C:/Users/AppData/Local/Programs/Git  238G  212G   27G  89% /

$ docker info
Containers: 10
Images: 287
Server Version: 1.9.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 307
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.12-boot2docker
Operating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: D5YG:4JOA:KBEN:OENR:J6BV:TGHA:X5SP:IV2E:LTZQ:B2JC:N4ZH:XFML
Debug mode (server): true
 File Descriptors: 23
 Goroutines: 38
 System Time: 2016-01-28T09:43:10.094166463Z
 EventsListeners: 0
 Init SHA1:
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox

And **why do I see 300 images **whereas docker images and ps -a only returns about 20 images and containers ?


(Krishna81m) #2

Now, it won’t even run any image and I can see it occupies almost 20 GB although I have 4 containers and 10 imeages occupying less than 10 GB. There are no dangling images or dead containers.


(Krishna81m) #3

Never mind, figured it out.

Apparently, the default is 20 GB and they should have chosen a higher number.
docker-machine -D create -d virtualbox --virtualbox-disk-size “100000” default

$ docker-machine inspect default
{
    "ConfigVersion": 3,
    "Driver": {
        "VBoxManager": {},
        "IPAddress": "192.168.99.100",
        "SSHUser": "docker",
        "SSHPort": 49652,
        "MachineName": "default",
        "SwarmMaster": false,
        "SwarmHost": "tcp://0.0.0.0:3376",
        "SwarmDiscovery": "",
        "StorePath": "C:\\Users\\docker\\machine",
        "CPU": 1,
        "Memory": 2048,
        "DiskSize": 20000,                <<<<<<<<<<<<<<<<<< this is probably the 20 GB
        "Boot2DockerURL": "",
        "Boot2DockerImportVM": "",
        "HostOnlyCIDR": "192.168.99.1/24",
        "HostOnlyNicType": "82540EM",
        "HostOnlyPromiscMode": "deny",
        "NoShare": false
    },

Think this is the reason why my containers keep saying no space left and creating a new machine is the only solution?

[warn 2016/01/28 09:37:10.657 UTC <DiskStoreMonitor> tid=0x20] The disk volume . 
for disk store DEFAULT has exceeded the warning usage threshold and is 92% full

How do you find how much space is assigned and allocated? When I sum up all the image sizes, it is pretty close to 19 GB.

$ docker info
Containers: 6
Images: 296
Server Version: 1.9.0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 308
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.12-boot2docker
Operating System: Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: VB43:GWDY:HJVP:GEG5:BA27:E6GJ:FQ35:AT6W:NDSH:IHT4:XQDZ:NO33
Debug mode (server): true
 File Descriptors: 13
 Goroutines: 20
 System Time: 2016-01-29T00:21:04.352372813Z
 EventsListeners: 0
 Init SHA1:
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox