场景
在将golang应用打包成docker的镜像的过程中执行下面命令
docker run -it -P --name docker_client -m 1024m --net host docker_client:1.0
执行以后服务器就报了这个错误
standard_init_linux.go:190: exec user process caused "exec format error"
按照网上的方法一直没用,自己在虚拟机上也能正常运行,后面认真看自己的dockerfile文件
FROM golang:alpine
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn,direct \