Bad file descriptor ERROR during apk update in Docker container... Why? Bad file descriptor ERROR during apk update in Docker container... Why? docker docker

Bad file descriptor ERROR during apk update in Docker container... Why?


--no-cache option allows to not cache the index locally.That is helpful in keeping the container small.

Also, it is equivalent to apk update at the top and rm -rf /var/cache/apk/ in the end.

So you can try to use it this way:

RUN apk add --update --no-cache bash \    git \    make \    clang \    g++ \    go && \    mkdir -p $REPO && \    mkdir -p $GODIR/src && \    rm -rf /usr/share/man && \    apk del git clang