我们使用Jenkins构建Docker镜像,一切正常,直到上周我尝试在Jenkins中构建镜像时,每次都失败,并出现以下错误信息:"Error response from daemon: Error processing tar file(exit status 1): write /app/node_modules/acorn/dist/acorn_loose.es.js: no space left on device" (失败的文件可能因项目而异)。如果我尝试在服务器上使用Docker,则可以构建镜像,但是在Jenkins上会失败。
我尝试删除旧的容器和镜像等,但无济于事。磁盘空间和inode看起来没问题,所以我不知道现在要尝试什么。感激任何帮助。
"docker info" 的结果:
Containers: 55
Running: 48
Paused: 0
Stopped: 7
Images: 59
Server Version: 17.03.2-ce
Storage Driver: overlay
Backing Filesystem: extfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.45-rancher
Operating System: RancherOS v1.1.0
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 19.61 GiB
Name: rancher
ID: Z7Z3:T3NW:N4O3:FKMZ:7KH6:FJ7R:TJ6A:FXLW:KNUL:WMRC:ED74:KHEM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
dockerhub.companysite.net:5000
127.0.0.0/8
Live Restore Enabled: false
"df -h"的结果:
Filesystem Size Used Avail Use% Mounted on
overlay 47G 27G 18G 60% /
tmpfs 9.9G 0 9.9G 0% /dev
tmpfs 9.9G 0 9.9G 0% /sys/fs/cgroup
/dev/sda1 47G 27G 18G 60% /.r
shm 64M 0 64M 0% /dev/shm
tmpfs 9.9G 0 9.9G 0% /sys/firmware
"df -ih" 的结果如下:
Filesystem Inodes IUsed IFree IUse% Mounted on
overlay 13M 2.8M 9.8M 22% /
tmpfs 2.5M 16 2.5M 1% /dev
tmpfs 2.5M 15 2.5M 1% /sys/fs/cgroup
/dev/sda1 13M 2.8M 9.8M 22% /.r
shm 2.5M 1 2.5M 1% /dev/shm
tmpfs 2.5M 1 2.5M 1% /sys/firmware