OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exe

在这里插入图片描述
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: “ip”: executable file not found in $PATH: unknown

这是由于没有ip addr命令造成的
dokcer的tomcat镜像比较简洁,如果想要其他命令需要手动安装
在我电脑里一次执行两条命令会报错,分开就好了

apt update && apt install -y iproute2
apt update 
apt install -y iproute2

安装好后就可以执行了
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exe_第1张图片
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exe_第2张图片

你可能感兴趣的:(出错解决方案,linux,golang,运维)