全部產品
Search
文件中心

Function Compute:CustomContainerConfig

更新時間:Feb 26, 2026

名稱

類型

描述

樣本值

object

自訂容器相關函數配置。

args

string

容器啟動參數。

["-arg1", "value1"]

command

string

容器啟動命令。

["/code/myserver"]

image

string

容器鏡像地址。

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

accelerationType

string

是否開啟鏡像加速。

  • Default:預設值,表示開啟鏡像加速。

  • None:表示關閉鏡像加速。

Default

instanceID

string

ACR 企業版鏡像倉庫 ID,使用 ACR 企業版鏡像時須傳入。

cri-xxxxxxxxxx

webServerMode

boolean

鏡像運行是否為 Web Server 模式。

  • 取值為 true 表示需要在容器鏡像中實現 Web Server 來監聽連接埠並處理請求。

  • 取值為 false 表示需要容器運行後主動退出進程,並且 ExitCode 需要為 0。

預設值為 true。

true