報(bào)錯(cuò)1: Error processing tar file(exit status 1): write /var/lib/dpkg/info/gitlab-ce.md5sums: no space left on device
原因:磁盤內(nèi)存過多
解決1:
刪除無用的文件包等
解決2:
mkdir /docker
mv /var/lib/docker/* /docker/
///
[root@k8s-master-node1 cicd-runner]# cat /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "200m",
"max-file": "5"
},
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 655360,
"Soft": 655360
},
"nproc": {
"Name": "nproc",
"Hard": 655360,
"Soft": 655360
}
},
"live-restore": true,
"oom-score-adjust": -1000,
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 10,
"storage-driver": "overlay2",
"storage-opts": ["overlay2.override_kernel_check=true"],
"insecure-registries": ["0.0.0.0/0"],
"exec-opts": ["native.cgroupdriver=systemd"],
"registry-mirrors": [
"https://registry.cn-hangzhou.aliyuncs.com",
"http://192.168.60.100:80"
],
"data-root": "/docker"
}
///
systemctl restart docker
docker info | grep Dir
// Docker Root Dir: /docker