问题报错:

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

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐