gliderlabs/docker-alpine

arm64v8/alpine dockerfile RUN addgroup failed

JaysLiang opened this issue · 0 comments

dockerfile with arm64v8 arch

FROM arm64v8/alpine 
RUN addgroup -S  simon 

failed! error mesage:

standard_init_linux.go:190: exec user process caused "exec format error"
The command '/bin/sh -c addgroup -S simon' returned a non-zero code: 1

But if I run command in arm64v8 container

docker exec -it  arm64v8/alpine:latest /bin/sh
/ # addgroup -S  simon
/ # cat /etc/group |grep simon
simon:x:101:

And also if I use x86 64 as base image, everything is ok

FROM alpine 
RUN addgroup -S  simon