docker exec format error

命令docker exec -it {container_name} /bin/sh

报错为:

OCI runtime exec failed: exec failed: container_linux.go:318: starting container process caused "exec format error": unknown

原因:

该镜像为amd64的架构,在arm机器上跑不起来。

使用docker inspect {image_name:tag}可查看该image的架构,其中

"Architecture": "amd64" 或 "Architecture": "arm64"

posted @ 2021-02-18 15:58  混下来  阅读(7750)  评论(0编辑  收藏  举报