docker can';无法连接到其他docker服务

docker can';无法连接到其他docker服务,docker,sentry,Docker,Sentry,我正在尝试运行sentry内部版本() 日志显示 relay_1 | 2020-09-09T10:45:13Z [relay_server::actors::upstream] ERROR: authentication encountered error: could not send request to upstream relay_1 | caused by: Failed to connec

我正在尝试运行sentry内部版本()

日志显示

relay_1                        | 2020-09-09T10:45:13Z [relay_server::actors::upstream] ERROR: authentication encountered error: could not send request to upstream
relay_1                        |   caused by: Failed to connect to host: Failed resolving hostname: no record found for name: web.router703710.com. type: AAAA class: IN
relay_1                        |   caused by: Failed resolving hostname: no record found for name: web.router703710.com. type: AAAA class: IN
relay_1                        |   caused by: Failed resolving hostname: no record found for name: web.router703710.com. type: AAAA class: IN
router703710.com
是我们的cisco路由器分配的dns。。 尽管我们不以任何方式使用它。 我只是看到思科在路由器的设置页面上设置了dns

从docker运行的主机,我无法连接到
router703710.com
www.router703710.com

那么,我如何告诉docker不要使用dns和其他一些实际工作的dns呢

我唯一能想到的就是下面的设置,我不确定它会有什么不同

 network_mode: host
  dns:
   -  192.168.1.1
docker图像似乎是,但我不知道如何查看实际的docker文件,它已在中讨论过,而且似乎这个问题来自docker。在该线程中提供了一种变通方法,将Docker降级为
19.03

我对命令做了一些更改。
19.03
的最新Docker是
19.03.15
(不是原始解决方案中的
19.03.14
),并使用apt标记防止自动升级Docker(注意这是针对Ubuntu 20.04,焦点):

apt install -y --allow-downgrades docker-ce=5:19.03.15~3-0~ubuntu-focal docker-ce-cli=5:19.03.15~3-0~ubuntu-focal
apt-mark hold docker-ce docker-ce-cli