1.报错:
使用journalctl -xefu kubelet命令查看kubelet日志发现如下报错:
cannot find network namespace for the terminated container
2.解决办法:
# docker system prune
# systemctl restart kubelet
docker system使用说明:
# docker system -h
Flag shorthand -h has been deprecated, please use --help
Usage: docker system COMMAND
Manage Docker
Commands:
df Show docker disk usage
查看docker空间使用情况。
events Get real time events from the server
查看实时事件。
info Display system-wide information
查看系统信息。
prune Remove unused data
docker清理停止的容器,没有容器使用的网络、镜像、缓存。