热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Errorresponsefromdaemon:readlink/var/lib/docker/overlay2:invalidargument

错误信息查看pod报错信息[rootk8s-3~]#kubectl-nkube-systemdescribepometrics-server-5cb9ff977-s28lm.

错误信息

// 查看pod 报错信息
[root@k8s-3 ~]# kubectl -n kube-system describe po metrics-server-5cb9ff977-s28lm
...........Warning InspectFailed 4m53s (x12 over 6m50s) kubelet, k8s-3 Failed to inspect image "registry.cn-hangzhou.aliyuncs.com/ccgg/metrics-server-amd64:v0.3.3": rpc error: code = Unknown desc = Error response from daemon: readlink /var/lib/docker/overlay2: invalid argumentWarning Failed 4m38s (x13 over 6m50s) kubelet, k8s-3 Error: ImageInspectError// 查看 kubelet 报错信息
[root@k8s-3 ~]# journalctl -fu kubeletSep 06 14:02:28 k8s-3 kubelet[1342]: E0906 14:02:28.096965 1342 pod_workers.go:190] Error syncing pod 1351dd58-9485-497c-b873-cf563add9c58 ("metrics-server-5cb9ff977-s28lm_kube-system(1351dd58-9485-497c-b873-cf563add9c58)"), skipping: failed to "StartContainer" for "metrics-server" with ImageInspectError: "Failed to inspect image \"registry.cn-hangzhou.aliyuncs.com/ccgg/metrics-server-amd64:v0.3.3\": rpc error: code = Unknown desc = Error response from daemon: readlink /var/lib/docker/overlay2: invalid argument"

清理Docker占用的磁盘空间

// 可以用于清理磁盘,删除关闭的容器、无用的数据卷和网络
[root@k8s-3 / ]docker system prune -aWARNING! This will remove:- all stopped containers- all networks not used by at least one container- all images without at least one container associated to them- all build cache
Are you sure you want to continue? [y/N] y
Deleted Images:

推荐阅读
author-avatar
mobiledu2502876347
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有