Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

running make on mac OSX returns error "addgroup: gid '20' in use" #11

Open
SKD-SKD opened this issue Dec 2, 2019 · 0 comments
Open

Comments

@SKD-SKD
Copy link

SKD-SKD commented Dec 2, 2019

i am building on mac OSX, and have an error below, thank you,

make build
docker build -t service-level-operator --build-arg uid=501 --build-arg gid=20 -f ./docker/dev/Dockerfile .
Sending build context to Docker daemon 28.01MB
Step 1/13 : FROM golang:1.13-alpine
---> 3024b4e742b0
Step 2/13 : RUN apk --no-cache add bash git g++ curl openssl openssh-client
---> Using cache
---> acf3cd708880
Step 3/13 : RUN go get -u github.com/vektra/mockery/.../
---> Using cache
---> 0e91154912cf
Step 4/13 : RUN mkdir /src
---> Using cache
---> f36d86241b67
Step 5/13 : ARG uid=1000
---> Using cache
---> 9107ab54794b
Step 6/13 : ARG gid=1000
---> Using cache
---> 39996406cbad
Step 7/13 : RUN addgroup -g $gid service-level-operator && adduser -D -u $uid -G service-level-operator service-level-operator && chown service-level-operator:service-level-operator -R /src && chown service-level-operator:service-level-operator -R /go
---> Running in 3ba607420f62
addgroup: gid '20' in use
The command '/bin/sh -c addgroup -g $gid service-level-operator && adduser -D -u $uid -G service-level-operator service-level-operator && chown service-level-operator:service-level-operator -R /src && chown service-level-operator:service-level-operator -R /go' returned a non-zero code: 1
make: *** [build] Error 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant