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"