首页 > 解决方案 > AWS 内部的 Docker 容器无法从外部访问

问题描述

我在 VPC 的公共子网中的 EC2 实例上将 REST 服务作为 docker 容器运行。我可以从 ec2 容器内访问端点,但无法从外部访问。

我已验证安全组已为 Anywhere 启用了 ALL TRAFFIC 此外,NACL 具有允许来自任何地方的 INBOUND 和 OUTBOUND 流量的规则 与子网关联的路由表具有到 Internet 网关的路由

有什么建议么

标签: amazon-web-servicesdocker

解决方案


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


推荐阅读