Skip to content

lib-docker 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793586808/FIN+5.3.1+lib-docker 中文整理基于 FIN 5.3.1

导读: 本页为 lib-docker 的 API / 标签 / 函数参考文档。

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​


概述(中译) ​

Docker 管理


API 正文(英文) ​

tags ​

dockerContainerDocker container
dockerImageDocker image
dockerStateCurrent status of a Docker container
dockerStatusAdditional human-readable status of the container

apps ​

dockerViews used to manage Docker images

funcs ​

dockerDeleteContainerKill and remove a container
dockerListContainers
dockerListImages
dockerRun

views ​

dockerContainersManage Docker containers
dockerImagesMange Docker images
dockerSettingsSettings for the Docker extension


def ​

app:docker ​

Views used to manage Docker images


meta ​

defapp:docker
disDocker
icondocker
isapp
liblib:docker

supertypes ​

featureFeature namespace of definitions formatted as feature:name
appUI application grouping of views


def ​

dockerContainer ​

Docker container


meta ​

defdockerContainer
isentity
liblib:docker
mandatory✓

supertypes ​

markerMarker labels a dict with typing information
entityTop-level dicts with a unique identifier

tags ​

disDisplay name for an entity
dockerStateCurrent status of a Docker container
dockerStatusAdditional human-readable status of the container
idDefines the unique identifier of an entity in system using a ref value type


def ​

dockerImage ​

Docker image


meta ​

defdockerImage
isentity
liblib:docker
mandatory✓

supertypes ​

markerMarker labels a dict with typing information
entityTop-level dicts with a unique identifier

tags ​

disDisplay name for an entity
idDefines the unique identifier of an entity in system using a ref value type


def ​

dockerState ​

Current status of a Docker container


meta ​

defdockerState
enumSee below
isstr
liblib:docker
tagOndockerContainer
transient✓

enum ​

created
restarting
running
removing
paused
exited
dead

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

dockerStatus ​

Additional human-readable status of the container


meta ​

defdockerStatus
isstr
liblib:docker
tagOndockerContainer

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

func:dockerDeleteContainer ​

dockerDeleteContainer(id) ​

Kill and remove a container.


meta ​

admin✓
deffunc:dockerDeleteContainer
isfunc
liblib:docker
namedockerDeleteContainer

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:dockerListContainers ​

dockerListContainers() ​


meta ​

admin✓
deffunc:dockerListContainers
isfunc
liblib:docker
namedockerListContainers

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:dockerListImages ​

dockerListImages() ​


meta ​

admin✓
deffunc:dockerListImages
isfunc
liblib:docker
namedockerListImages

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:dockerRun ​

dockerRun(image, config: {}) ​


meta ​

admin✓
deffunc:dockerRun
isfunc
liblib:docker
namedockerRun

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

view:dockerContainers ​

Manage Docker containers


meta ​

admin✓
appNamedocker
defview:dockerContainers
disContainers
iconview
isview
liblib:docker
order101

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:   { inherit:"table" }
delete: { action:"dockerDeleteContainer", select, disKey:"ui::delete" }
data:   { expr:"dockerListContainers()" }


def ​

view:dockerImages ​

Mange Docker images


meta ​

appNamedocker
defview:dockerImages
disImages
iconview
isview
liblib:docker
order100
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view: { inherit:"table" }
data: { expr:"dockerListImages()" }


def ​

view:dockerSettings ​

Settings for the Docker extension


meta ​

admin✓
appNamesettings
defview:dockerSettings
disKeyDocker
iconview
isview
liblib:docker

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:   {inherit:"form"}
submit: {action:"extSettingsCommit"}
data:   {expr:"extSettings(\"docker\")"}