I am facing the same issue inside Docker. I tried setting RUN yarn config set registry https://registry.npmmirror.com/ --global but it did not work for me.
RUN yarn config set registry https://registry.npmmirror.com/ --global