通过IPv6卷发到Podman服务

发布于 2025-02-06 03:03:12 字数 1020 浏览 3 评论 0原文

我有Podman的Centos8 VM。我从下面开始我的容器

  podman run -name mycontainer -rm -h host6 -p [::]:443:443:443 -v/root/data:/data:z 13AC5A89EB933
 

这表明该服务是在

Podman PS -A的端口443 O/P上聆听。

CONTAINER ID  IMAGE                          COMMAND     CREATED             STATUS                 PORTS            NAMES
c8aef6cb1233  localhost/prod:2.1.0              About a minute ago  Up About a minute ago  :::443->443/tcp  mycontainer

LSOF -PNL +M -I |的O/P GREP 443

conmon    1499659        0    5u  IPv6 92925840      0t0  TCP *:443 (LISTEN)

从输出中我们可以看到Conmon在端口443上侦听,但我无法curl命令连接。

curl -k -v https://host6/
*   Trying 2400::132...
* TCP_NODELAY set
* connect to 2400::132 port 443 failed: Connection refused
* Failed to connect to amshost6 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to host6 port 443: Connection refused

连接被拒绝的原因是什么?

I have CentOS8 VM with podman. I start my container as below

podman run --name mycontainer --rm -h host6 -p [::]:443:443 -v /root/data:/data:Z 13ac5a89eb93

This shows that the service is listening on port 443

O/P of podman ps -a.

CONTAINER ID  IMAGE                          COMMAND     CREATED             STATUS                 PORTS            NAMES
c8aef6cb1233  localhost/prod:2.1.0              About a minute ago  Up About a minute ago  :::443->443/tcp  mycontainer

O/P of lsof -Pnl +M -i | grep 443

conmon    1499659        0    5u  IPv6 92925840      0t0  TCP *:443 (LISTEN)

From the output we can see conmon is listening on port 443 but I am not able to curl command to connect.

curl -k -v https://host6/
*   Trying 2400::132...
* TCP_NODELAY set
* connect to 2400::132 port 443 failed: Connection refused
* Failed to connect to amshost6 port 443: Connection refused
* Closing connection 0
curl: (7) Failed to connect to host6 port 443: Connection refused

What could be the reason of connection getting refused?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文