You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DockerClientFactory is wrong at guessing available disk space #223
[main] INFO org.testcontainers.DockerClientFactory - Connected to docker:
Server Version: 1.12.1-rc2
API Version: 1.24
Operating System: Debian GNU/Linux stretch/sid
Total Memory: 7783 MB
[main] INFO org.testcontainers.DockerClientFactory - Disk utilization in Docker environment is 0% (0 MB available)
[main] ERROR org.testcontainers.DockerClientFactory - Docker environment has less than 2GB free - execution is unlikely to succeed so will be aborted.
The problem is here IMO : CreateContainerResponse createContainerResponse = client.createContainerCmd("alpine:3.2").withCmd("df", "-P").exec();
The result of such a command is :
$ docker run --rm -ti alpine:3.2 df -P
Filesystem 1024-blocks Used Available Capacity Mounted on
$
Thanks - that's very odd. I've seen the results of df vary in interesting
ways (seemingly based on host OS and/or volume driver) but never 'empty'
output like that.
I'll look to fix, but will also have a bit of a rethink bout the utility of
performing disk space checks - it was useful in the early days of the
library when image removal was troublesome, but perhaps now it's not
serving a useful purpose...
[main] INFO org.testcontainers.DockerClientFactory - Connected to docker:
Server Version: 1.12.1-rc2
API Version: 1.24
Operating System: Debian GNU/Linux stretch/sid
Total Memory: 7783 MB
[main] INFO org.testcontainers.DockerClientFactory - Disk utilization in Docker environment is 0% (0 MB available)
[main] ERROR org.testcontainers.DockerClientFactory - Docker environment has less than 2GB free - execution is unlikely to succeed so will be aborted.
The problem is here IMO : CreateContainerResponse createContainerResponse
= client.createContainerCmd("alpine:3.2").withCmd("df", "-P").exec();
The result of such a command is :
$ docker run --rm -ti alpine:3.2 df -P
Filesystem 1024-blocks Used Available Capacity Mounted on
$
I tried running the same command with a debian-based image and the output is non-empty.
We could at least prevent failure if we are not able to parse df output, It could be enough for now ?
Activity
rnorth commentedon Sep 14, 2016
Matthieu,
Thanks - that's very odd. I've seen the results of df vary in interesting
ways (seemingly based on host OS and/or volume driver) but never 'empty'
output like that.
I'll look to fix, but will also have a bit of a rethink bout the utility of
performing disk space checks - it was useful in the early days of the
library when image removal was troublesome, but perhaps now it's not
serving a useful purpose...
Richard
On Tue, 13 Sep 2016 at 16:22, Matthieu Baechler notifications@github.com
wrote:
mbaechler commentedon Sep 15, 2016
I tried running the same command with a debian-based image and the output is non-empty.
We could at least prevent failure if we are not able to parse
dfoutput, It could be enough for now ?mrVanDalo commentedon Sep 16, 2016
Have the same problem here :(
mbaechler commentedon Sep 20, 2016
#225
rnorth commentedon Nov 20, 2016
I'll close this as the fix was merged previously.