VolumeDefinition interface
描述容器的磁碟區設定
屬性
bind | 掛接的系結選項 |
consistency | 磁碟區的一致性 |
read |
指出是否要將磁碟區掛接為 readOnly。 默認值為 false。 |
source | 掛接的來源。 對於系結掛接,這是主機路徑。 |
target | 掛接的目標。 對於系結掛接,這是容器中的路徑。 |
tmpfs | 掛接的 tmpfs 選項 |
type | 磁碟區定義的類型。 可能的值:bind、volume、tmpfs、npipe |
volume | 掛接的磁碟區選項 |
屬性詳細資料
bind
consistency
磁碟區的一致性
consistency?: string
屬性值
string
readOnly
指出是否要將磁碟區掛接為 readOnly。 默認值為 false。
readOnly?: boolean
屬性值
boolean
source
掛接的來源。 對於系結掛接,這是主機路徑。
source?: string
屬性值
string
target
掛接的目標。 對於系結掛接,這是容器中的路徑。
target?: string
屬性值
string
tmpfs
type
磁碟區定義的類型。 可能的值:bind、volume、tmpfs、npipe
type?: string
屬性值
string