【问题标题】:How to connect from podman to a server running in localhost如何从 podman 连接到在 localhost 中运行的服务器
【发布时间】:2022-08-09 20:49:05
【问题描述】:

使用 docker-in-virtualbox 我知道 10.0.2.2 是运行 Virtualbox 的主机,我可以通过这种方式进行连接。

Podman 在 QEMU 中运行的类比是什么?我在 MacOS Big Sur / x64 上(通过 brew 安装)。

    标签: podman


    【解决方案1】:

    查看容器中的 /etc/hosts ,应该有这样的行:

    10.88.0.1 host.containers.internal

    IP 地址会有所不同,但您可以改用 DNS“host.containers.internal”。

    【讨论】:

      猜你喜欢
      • 2020-08-08
      • 1970-01-01
      • 1970-01-01
      • 2019-12-26
      • 2013-04-06
      • 2012-11-03
      • 2014-07-14
      • 2018-12-02
      相关资源
      最近更新 更多