exec failed: unable to start container process: exec: “ip“: executable file not found in $PATH
报错原因:因为该容器的镜像时精简版,内部缺少iproute2导致无法使用ip命令。docker exec -it 容器名 /bin/bash。docker exec -it 容器名 ip addr。安装完以后退出exit。安装iproute2。
文章共168字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
问题报错:
OCI runtime exec failed: exec failed: unable to start container process: exec: "ip": executable file not found in $PATH: unknown
报错原因:因为该容器的镜像时精简版,内部缺少iproute2导致无法使用ip命令
解决方式:
进入容器
docker exec -it 容器名 /bin/bash
进入后:
更新apt
apt-get update
安装iproute2
agt install -y iproute2
安装完以后退出exit
docker exec -it 容器名 ip addr
修改后尝试结果:
同理
OCI runtime exec failed: exec failed: unable to start container process: exec: "ping": executable file not found in $PATH: unknown
安装iputils-ping
agt install -y iputils-ping
更多推荐
已为社区贡献1条内容
所有评论(0)