无法在azure容器中设置网络模式主机 [英] Unable to set network mode host in azure container

查看:71
本文介绍了无法在azure容器中设置网络模式主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在我的azure web app容器中的docker-compose文件中设置network_mode:host。但看起来根据日志忽略了这个设置。在"docker run"中没有传递--network参数。命令由azure自动创建

I'm trying to set up network_mode: host in my docker-compose file in scope of my azure web app for container. But it looks like this setting is ignored according to logs. There is no --network parameter passed in "docker run" command created automatically by azure.


你能帮忙理解为什么吗?那是因为天蓝色的限制吗?或者在任何云提供商都不可能?

Could you please help understand why? Is that because of limitations of azure? Or it is impossible at all in any cloud provider?


提前谢谢。

Thank you in advance.

推荐答案

以下列表显示支持和不支持的Docker在Web App for Containers中撰写配置选项(目前):

支持的选项

Supported options


  • 命令
  • 入口点
  • 环境
  • 图像
  • 端口
  • 重新启动
  • 服务
  • command
  • entrypoint
  • environment
  • image
  • ports
  • restart
  • services
  • volumes

不支持的选项

Unsupported options


  • 构建(不允许)
  • depends_on(忽略)
  • 网络(忽略)
  • 秘密(忽略)
  • build (not allowed)
  • depends_on (ignored)
  • networks (ignored)
  • secrets (ignored)

有关此主题的更多信息,请查看

document


这篇关于无法在azure容器中设置网络模式主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆