You are not logged in.

#1 2017-10-01 09:35:07

avaer
Member
Registered: 2015-02-28
Posts: 2

Docker build fails: no space left on device

I'm trying to build a docker image, but it fails due to "no space left on device". Output from docker build:

Sending build context to Docker daemon  33.79kB
Step 1/10 : FROM centos:7
 ---> 67591570dd29
Step 2/10 : ADD http://pkg.jenkins-ci.org/redhat/jenkins.repo /etc/yum.repos.d/jenkins.repo
Downloading [==================================================>]      71B/71B
ApplyLayer write /var/lib/docker/image/btrfs/layerdb/tmp/write-set-946751203/tar-split.json.gz: no space left on device stdout: {"layerSize":3638863687}
 stderr:

Meanwhile building, I was repeatedly running df -h, and these two results were divided in less than a second:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        30G   19G   12G  63% /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        30G   19G     0 100% /

Notice "Used" does not change, but "Avail" goes to zero. Free space wasn't decreasing step by step, it was all the same, and then BAM! - zero.

I was building this image on the same system with no problem some time ago.

Docker info:

$ docker info
Containers: 3
 Running: 0
 Paused: 0
 Stopped: 3
Images: 31
Server Version: 17.07.0-ce
Storage Driver: btrfs
 Build Version: Btrfs v4.12
 Library Version: 102
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3addd840653146c90a254301d6c3a663c7fd6429
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.13.3-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.67GiB
Name: pridelands
ID: CD4T:CUNT:A2MN:Y3UF:PZAN:VLXF:YZVS:DFA5:CYX5:3ZBZ:WPN5:N6X6
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Any help would be much appreciated.

Offline

Board footer

Powered by FluxBB