https://stackoverflow.com/questions/48736212/bad-file-descriptor-error-during-apk-update-in-docker-container-why

When you login docker container, use apk update get this error message Bad file descriptor…

Try to run follow command

  
rm -rf /var/cache/apk && \  
mkdir /var/cache/apk && \  
apk update