首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >pod启动报错mount destination xxxx not absolute

pod启动报错mount destination xxxx not absolute

原创
作者头像
聂伟星
发布于 2026-10-30 10:14:29
发布于 2026-10-30 10:14:29
520
举报

pod启动报错mount destination xxxx not absolute

问题现象

部署镜像到tke集群上,pod启动报错。

代码语言:plaintext
复制
Error: failed to start container "volume-test": Error response from daemon: OCI runtime create failed: invalid mount {Destination:data/test Type:bind Source:/var/lib/docker/volumes/afb1908160a4aab18f754325b4df4968fcb4846cb4c9367c326d2e3f70d59f3b/_data Options:[rbind]}: mount destination data/test not absolute: unknown

对应的Dockerfile如下

代码语言:plaintext
复制
FROM nginx
VOLUME data/test

排查思路

查看pod事件报错,提示是因为data/test不是绝对路径导致的,这里是dockerfile编写不规范导致的。

解决方案

将volume字段的路径改成绝对路径即可。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

目录
  • pod启动报错mount destination xxxx not absolute
    • 问题现象
    • 排查思路
    • 解决方案
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档