Hello,
I have a strange issue with Docker on Windows 10 (WSL 2).
When I build an image based on OpenSuse 15.xx, sometimes the command zypper -n install some-package
fails with code 106. The problem is gone after the machine reboot. But, after some repeats, it appears again.
I tried to reproduce the issue with Docker Engine + Ubuntu host OS. But, it works fine in this case.
Did anyone face with such strange behavior?
Here is a part of my Dockerfile and the error message:
FROM opensuse/leap AS base
RUN zypper clean --all
RUN zypper -n install wget libicu && \
wget https://packages.microsoft.com/keys/microsoft.asc
RUN rpm --import microsoft.asc
RUN wget https://packages.microsoft.com/config/opensuse/15/prod.repo && \
mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo && \
chown root:root /etc/zypp/repos.d/microsoft-prod.repo
RUN zypper -n install aspnetcore-runtime-7.0
#Install dependencies
RUN zypper -n install glibc-devel fontconfig
#Install fonts
RUN zypper -n install fetchmsttfonts
WORKDIR /app
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
EXPOSE 80
EXPOSE 443
executor failed running [/bin/sh -c zypper -n install wget libicu && wget https://packages.microsoft.com/keys/microsoft.asc && rpm --import microsoft.asc]: exit code: 106