通过IPv6卷发到Podman服务
我有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论