【问题标题】:docker can't connect to another docker servicedocker 无法连接到另一个 docker 服务
【发布时间】:2020-12-27 19:16:51
【问题描述】:

我正在尝试运行哨兵本地版本 (https://github.com/getsentry/onpremise)

日志显示

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.. 虽然我们不以任何方式使用它。 我只是看到cisco在路由器的设置页面中有那个dns设置。

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

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

我能想到的只有以下设置,不确定它会有所作为

 network_mode: host
  dns:
   -  192.168.1.1

docker 镜像好像是https://hub.docker.com/r/getsentry/relay/ 但我不知道如何查看实际的dockerfile

【问题讨论】:

    标签: docker sentry


    【解决方案1】:

    已经在https://github.com/getsentry/onpremise/issues/771 中讨论过,似乎这个问题来自 Docker。 agrevtcev 在该线程中提供了一种解决方法,将 Docker 降级为 19.03

    我对命令进行了一些更改。 19.03 的最新 Docker 是 19.03.15(不是原来的解决方法中的 19.03.14),并使用 apt-mark 来防止自动升级 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-20
      • 2018-11-08
      • 1970-01-01
      • 2020-04-25
      • 1970-01-01
      • 2019-12-23
      相关资源
      最近更新 更多