amazon-web-services - AWS 内部的 Docker 容器无法从外部访问
问题描述
我在 VPC 的公共子网中的 EC2 实例上将 REST 服务作为 docker 容器运行。我可以从 ec2 容器内访问端点,但无法从外部访问。
我已验证安全组已为 Anywhere 启用了 ALL TRAFFIC 此外,NACL 具有允许来自任何地方的 INBOUND 和 OUTBOUND 流量的规则 与子网关联的路由表具有到 Internet 网关的路由
有什么建议么
解决方案
The issue is resolved, it was caused as i was connected to my company's VPN. When i disconnected from vpn i was able to access the endpoint successfully.
Thanks to the suggestion in https://stackoverflow.com/a/41623380/16612893
推荐阅读
- c# - 如何使用另一个类的列表视图数据?
- azure - 如何在 azure 门户网站中获取所有 Web 应用程序的 URL/URL 列表
- c++ - 为 c/c++ 函数调用设置超时
- javascript - D3非圆弧
- unity3d - Oculus Go - 检测运动
- java - ANTLR-4.7.1:不推荐使用 ANTLRInputStream 类型
- android - android jni调用方法错误
- html - 如果单击 iframe 中的任何链接,为什么 iframe 的 src 属性不会更改?
- angular - 带有辅助按钮的 mat-nav-list
- ssl - SSL 实现 oracle apex