1.temporary
现象:
docker build “temporary failure resolving deb.debian.org”
解决:
修改docker daemon配置文件
vim /etc/docker/dameon.json
"dns":["114.114.114.114","8.8.8.8"]
"iptables": true
#重启服务
systemctl daemon-reload
systemctl restart docker
修改docker daemon配置文件
vim /etc/docker/dameon.json
"dns":["114.114.114.114","8.8.8.8"]
"iptables": true
#重启服务
systemctl daemon-reload
systemctl restart docker
- dockerfile
yaml
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
ENV ASPNETCORE_URLS=http://+:10012
WORKDIR /vela/app
#RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free" > /etc/apt/sources.list
RUN apt-get --allow-releaseinfo-change update -y && apt-get install -y libgdiplus libc6-dev
ENTRYPOINT chmod +x Activity.Core && /vela/app/Activity.Core
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
ENV ASPNETCORE_URLS=http://+:10012
WORKDIR /vela/app
#RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ sid main contrib non-free" > /etc/apt/sources.list
RUN apt-get --allow-releaseinfo-change update -y && apt-get install -y libgdiplus libc6-dev
ENTRYPOINT chmod +x Activity.Core && /vela/app/Activity.Core