查看磁盘空间
df -h
/目录占用达到100%, 分析可能是docker容器数据占用了空间
去container目录查看占用情况
cd /var/lib/docker/containers
du -sh {目录}
查看哪个目录有占用空间异常, 删除对应文件即可
如我这里是Gitlab日志文件占用了27G:
# 删除Gitlab日志文件并重启Gitlab容器即可
"LogPath": "/var/lib/docker/containers/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3-json.log"
Tips: 查看容器详细信息命令
docker container inspect {容器名}
示例
docker container inspect gitlab
"ResolvConfPath": "/var/lib/docker/containers/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3/hostname",
"HostsPath": "/var/lib/docker/containers/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3/hosts",
"LogPath": "/var/lib/docker/containers/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3/f16aa2f0c73a6093b482fc3694119a1b753773fde92f797e8b79e86326515ca3-json.log",
"Binds": [
"/disk2/data/gitlab/etc:/etc/gitlab",
"/disk2/data/gitlab/log:/var/log/gitlab",
"/disk2/data/gitlab/data:/var/opt/gitlab",
"/etc/localtime:/etc/localtime:ro"
],
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: 5G | 无线通信基础知识
5G 应用场景
5G性能指标
5G 网络关键技术文章目录 5G 应用场景 5G性能指标 5G 网络关键技术 Massive MIMO 时分双工 or 频分双工 5G 应用场景 eMBB:增强性移动带宽 uRLLC:超高可靠低时延 mMTC:大规模机器通信 5G性能指标 1 10 100 1ms时延、10Gb…