探索容器程式碼套件屬性

描述容器及其執行時間屬性。

屬性

名稱 類型 必要
name string
image 字串 Yes
imageRegistryCredential ImageRegistryCredential
entrypoint 字串 No
commands 字串陣列 No
environmentVariables EnvironmentVariable的陣列 No
settings 設定的陣列 No
labels ContainerLabel的陣列 No
endpoints EndpointProperties的陣列 No
resources ResourceRequirements Yes
volumeRefs ContainerVolume的陣列 No
instanceView ContainerInstanceView No
diagnostics DiagnosticsRef No

name

類型:字串
必要:是

程式碼套件的名稱。


image

類型:字串
必要:是

要使用的容器映射。


imageRegistryCredential

類型ImageRegistryCredential
必要:否

映射登錄認證。


entrypoint

類型:字串
必要:否

覆寫容器中預設進入點。


commands

類型:字串陣列
必要:否

要以 exec 形式在容器內執行的命令陣列。


environmentVariables

類型EnvironmentVariable的陣列
必要:否

要在此容器中設定的環境變數


settings

類型設定的陣列
必要:否

要在此容器中設定的設定。 設定檔路徑可以從環境變數 「Fabric_SettingPath」 擷取。 Windows 容器的路徑是 「C:\secrets」。 Linux 容器的路徑為 「/var/secrets」。


labels

類型ContainerLabel的陣列
必要:否

要在此容器中設定的標籤。


endpoints

類型EndpointProperties的陣列
必要:否

此容器所公開的端點。


resources

類型ResourceRequirements
必要:是

此類型描述容器或服務的資源需求。


volumeRefs

類型ContainerVolume 的陣列
必要:否

要附加至容器的磁片區。


instanceView

類型ContainerInstanceView
必要:否

容器實例的執行時間資訊。


diagnostics

類型DiagnosticsRef
必要:否

DiagnosticsDescription 中接收的參考。