(improvement)(project) Resolve the issue of failing to access external domain names from within the container. (#1305)

This commit is contained in:
lexluo09
2024-07-01 12:01:06 +08:00
committed by GitHub
parent 96339f425c
commit da6ffdab27
2 changed files with 10 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ RUN apt-get update && \
apt-get install -y vim && \
rm -rf /var/lib/apt/lists/*
# Update the package list and install iputils-ping.
RUN apt-get update && apt-get install -y iputils-ping
# 更新包列表并安装 dnsutils 包
RUN apt-get update && apt-get install -y dnsutils
# Copy the supersonic standalone zip file into the container
COPY assembly/build/supersonic-standalone-${SUPERSONIC_VERSION}.zip .

View File

@@ -15,6 +15,7 @@ services:
networks:
- supersonic_network
dns:
- 114.114.114.114
- 8.8.8.8
- 8.8.4.4
@@ -36,6 +37,7 @@ services:
fi
"
dns:
- 114.114.114.114
- 8.8.8.8
- 8.8.4.4
@@ -49,6 +51,7 @@ services:
networks:
- supersonic_network
dns:
- 114.114.114.114
- 8.8.8.8
- 8.8.4.4
@@ -69,6 +72,7 @@ services:
networks:
- supersonic_network
dns:
- 114.114.114.114
- 8.8.8.8
- 8.8.4.4