gliderlabs / docker-alpine

Alpine Linux Docker image. Win at minimalism!
http://gliderlabs.viewdocs.io/docker-alpine
BSD 2-Clause "Simplified" License
5.71k stars 529 forks source link

arm64v8/alpine dockerfile RUN addgroup failed #538

Open JaysLiang opened 4 years ago

JaysLiang commented 4 years ago

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