CustomContainerConfigInfo

更新时间: 2024-03-03 14:09:52
名称类型描述示例值
object

自定义容器相关函数配置。

argsstring

容器启动参数。

["-arg1", "value1"]
commandstring

容器启动命令。

["/code/myserver"]
imagestring

容器镜像地址。

registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1
accelerationTypestring

是否开启镜像加速。

  • Default:默认值,表示开启镜像加速。
  • None:表示关闭镜像加速。
Default
accelerationInfoAccelerationInfo

自定义容器加速信息。

instanceIDstring

ACR 企业版镜像仓库 ID,使用 ACR 企业版镜像时须传入。

cri-xxxxxxxxxx
webServerModeboolean

镜像运行是否为 Web Server 模式。

  • 取值为 true 表示需要在容器镜像中实现 Web Server 来监听端口并处理请求。
  • 取值为 false 表示需要容器运行后主动退出进程,并且 ExitCode 需要为 0。 默认值为 true。
true
阿里云首页 函数计算(旧版) 相关技术圈