代码之家  ›  专栏  ›  技术社区  ›  Blue Clouds

容器部署后的Azure服务结构终结点

  •  0
  • Blue Clouds  · 技术社区  · 6 年前

    在本地运行时,它使用计算机名: http://joemachine:8229/account/Index . 服务结构项目的“应用程序URL”属性为“http://{MachineName}:8229”

    结构/应用程序1

    http://abcf12.uksouth.cloudapp.azure.com:19000 下面给出了Manisfest.xml的端点

    另外,由于在属性http://{machine name}:8229中提供了机器名,如何找到容器的机器名 因为这是在URL中使用的?

    <Resources>
    <Endpoints>
      <!-- This endpoint is used by the communication listener to obtain the port on which to
           listen. Please note that if your service is partitioned, this port is shared with
           replicas of different partitions that are placed in your code. -->
      <Endpoint Protocol="http" Name="AST.XyTypeEndpoint" Type="Input" Port="8229" />
    </Endpoints>
    

    编辑: 在SF资源管理器的最里面的节点Address->Endpoints中,给定了一个10.0.0.2:8229 IP。我试过了,但没用。

    1 回复  |  直到 6 年前
        1
  •  0
  •   Blue Clouds    6 年前

    部分回答。已验证的容器正在内部成功工作。

    mstsc /v:abcf12.uksouth.cloudapp.azure.com:3389 管理员用户名+密码

    命令提示符

    set DOCKER_HOST=localhost:2375
    

    (完全相同的端口) 然后 docker ps --no-trunc

    docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" s1233 其中s1223是容器id的前4个字符。

    http://IP/account/Index 证明服务正在加载。

    问题仍然是如何对外公开!