Azure 容器实例 - 公开端口以在 443 (HTTPS) 上绑定

Azure Container Instances - Expose port to bind on 443 (HTTPS)

我有一个默认为端口的图像,似乎没有在图像中公开它的选项。

如果需要的话,能不能把监听端口暴露出来,通过Container Instance绑定到不同的端口?

例如:

侦听 8099 -> 443(HTTPS 流量)?

看来你无法像在docker中那样实现这一点。您只需在创建 Azure 容器实例时选择要公开的端口即可。而且也没有 属性 使用 Azure CLI 命令 az container create.

来做到这一点

如果要暴露443端口,使用如下命令即可:

az container create -g resourceGroupName --name aciName --image yourImage --ip-address public --ports 443