简体   繁体   English

我无法使用我的 Azure VM 公共 ip 地址访问我的 docker 容器

[英]I can't access my docker container with my Azure VM public ip address

i have dockerized web app (.net core mvc) i can access with internal ip address but i can't access with my Windows VM public ip address (eg: 13.88.82.123:7272) and can't redirect my domain from cloudflare. i have dockerized web app (.net core mvc) i can access with internal ip address but i can't access with my Windows VM public ip address (eg: 13.88.82.123:7272) and can't redirect my domain from cloudflare.

I've tried network mode host and some other network examples.我已经尝试过网络模式主机和其他一些网络示例。 Here is my docker-compose file.这是我的 docker-compose 文件。


services:
  web:
    container_name: ciroplus
    image: tasmehmetcan/samplenetcoreapp:latest
    hostname: testciroplus.dogostore.com
    depends_on:
      - "redis_image"
    environment:
      - ASPNETCORE_URLS=http://*:1905
    links:
      - "redis_image"
  redis_image:
    image: redis
    container_name: cache
    ports:
      - "6379:6379"
  proxy:
    image: vc-nginx
    build:
      context: ./nginx
      dockerfile: Dockerfile
      network: host
    ports:
      - '7272:8080'
    environment:
       VIRTUAL_HOST: blabla.mydomain.com
    expose:
       - "7272"
    depends_on:
      - web
    links:
      - web:web1

Can you explain your configuration in more detail?你能更详细地解释你的配置吗? Is your Windows VM running Windows 10 client and you are running in Linux Container mode?您的 Windows 虚拟机是否运行 Windows 10 客户端并且您在 Linux 容器模式下运行?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法通过公共 IP 访问我的 Docker Node.js 容器 - I can not access by public IP to my Docker Node.js container 我可以在我的 docker 容器中获取 IP 地址吗? - Can I get ip address inside my docker container? Docker:如何从容器中访问服务器的公共IP? - Docker: How do I access my server's public IP from within a container? 为什么我无法访问在 Azure Web 应用程序的 docker 容器中运行的 mongodb? - Why can't I access my mongodb running in a docker container in Azure web apps? 如何通过 ip 地址访问 docker 容器 - How can I access a docker container via ip address 我无法在GCP Compute Engine上访问我的Docker容器 - I can't access my Docker container on GCP Compute Engine 无法通过IP地址访问Docker容器 - Can't acces docker container by IP address 我无法通过端口转发从公共 IP 访问 Docker 容器。 我可以检查请求停止的位置吗? - I can't access Docker container from public IP via port forwarding. Can i check where the request stops? 我无法直接从他的 ip 访问 docker 容器 - I can't access to docker container directly from his ip Azure Iotedge 使用 --net=host 启动 docker 以便我可以访问我的 IP - Azure Iotedge start docker with --net=host so that I can access my IP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM