我无法在docker上保存大尺寸图像(大于10G,可以保存正常大小的图像。)。
我收到此错误。
“守护程序的错误响应:写 /var/lib/docker/tmp/docker-export-583646400/c5d6f85cecb634a672016d4f45f80546c00de75c1cf03166ea0f8b04d31f5ae0/layer.tar: 设备“
上没有剩余空间
我的存储驱动程序是overlay2(无法更改基本大小吗?基本设备大小?)。我不知道此信息是否有用。无论如何,如果您有什么建议,请请教我。
我附上有关码头工人信息的信息。
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 4
Server Version: 18.09.0
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init containerd
version: c4446665cb9c30056f4998ed953e6d4ff22c7c39
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: fec3683
Security Options: seccomp
Profile: default
Kernel Version: 3.10.0-862.14.4.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 22.4GiB
Name: git.for.ota
ID: 3WCV:4BPQ:LTO3:FYQB:7PAK:4NH6:GUFH:XKZ5:UGZJ:JICV:MTU5:ROUE
Docker Root Dir: /var/lib/docker
Debug Mode (client): false Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries: 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
答案 0 :(得分:0)
首先,不要创建如此大的映像,将docker映像保持尽可能小。
第二,实际上存在的问题是overlay2存储本身的配置(默认情况下为10Gb)。