<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>this is my dockerfile</div><div><br></div><div><div>FROM mcr.microsoft.com/dotnet/aspnet:3.1</div><div><br></div><div>RUN ln -sf /usr/share/zoneinfo/Asia/ShangHai /etc/localtime</div><div>RUN echo "Asia/Shanghai" > /etc/timezone</div><div>RUN dpkg-reconfigure -f noninteractive tzdata</div><div><br></div><div>RUN apt-get update</div><div><br></div><div>RUN apt-get -y install default-mysql-client</div><div><br></div><div>WORKDIR /app</div><div><br></div><div>COPY ./app /app</div><div><br></div><div>ENTRYPOINT ["dotnet","app.dll"]</div></div><div><br></div><div><br></div><div>running error </div><div><br></div><div><div>docker build -t sjzt/saasinstall:1.0.4.2 .</div><div>[+] Building 0.7s (10/12)</div><div> => [internal] load build definition from Dockerfile 0.0s</div><div> => => transferring dockerfile: 32B 0.0s</div><div> => [internal] load .dockerignore 0.0s</div><div> => => transferring context: 2B 0.0s</div><div> => [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:3.1 0.4s</div><div> => [1/8] FROM mcr.microsoft.com/dotnet/aspnet:3.1@sha256:ff64b110039e488fbf0851fc4754a3de6d1ece9d033bc652f4ee2b0 0.0s</div><div> => => resolve mcr.microsoft.com/dotnet/aspnet:3.1@sha256:ff64b110039e488fbf0851fc4754a3de6d1ece9d033bc652f4ee2b0 0.0s</div><div> => [internal] load build context 0.0s</div><div> => => transferring context: 6.07kB 0.0s</div><div> => CACHED [2/8] RUN ln -sf /usr/share/zoneinfo/Asia/ShangHai /etc/localtime 0.0s</div><div> => CACHED [3/8] RUN echo "Asia/Shanghai" > /etc/timezone 0.0s</div><div> => CACHED [4/8] RUN dpkg-reconfigure -f noninteractive tzdata 0.0s</div><div> => CACHED [5/8] RUN apt-get update 0.0s</div><div> => ERROR [6/8] RUN apt-get -y install default-mysql-client 0.2s</div><div>------</div><div> > [6/8] RUN apt-get -y install default-mysql-client:</div><div>#9 0.145 Reading package lists...</div><div>#9 0.149 Building dependency tree...</div><div>#9 0.149 Reading state information...</div><div>#9 0.149 E: Unable to locate package default-mysql-client</div><div>------</div><div>executor failed running [/bin/sh -c apt-get -y install default-mysql-client]: exit code: 100</div></div><div><br></div><div>how to fix them?</div><div><br></div><hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>zhoujr01@mingyuanyun.com</div></div></span></div>
</body></html>