接口: NavigationIntents

Since

0.2.0

容器方法

viewContainers

viewContainers(): Promise<void>

导航到 Docker Desktop 中的 Containers 标签。

ddClient.desktopUI.navigate.viewContainers()

返回

Promise<void>


viewContainer

viewContainer(id): Promise<void>

导航到Docker Desktop中的容器标签。

await ddClient.desktopUI.navigate.viewContainer(id)

参数

NameTypeDescription
idstringThe full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

返回

Promise<void>

如果容器不存在,则承诺失败。


viewContainerLogs

viewContainerLogs(id): Promise<void>

导航到Docker Desktop中的容器日志标签。

await ddClient.desktopUI.navigate.viewContainerLogs(id)

参数

NameTypeDescription
idstringThe full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

返回

Promise<void>

如果容器不存在,则承诺失败。


viewContainerInspect

viewContainerInspect(id): Promise<void>

导航到 Docker Desktop 中的 检查容器 视图。

await ddClient.desktopUI.navigate.viewContainerInspect(id)

参数

NameTypeDescription
idstringThe full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

返回

Promise<void>

如果容器不存在,则承诺失败。


viewContainerTerminal

viewContainerTerminal(id): Promise<void>

导航到Docker Desktop中的容器终端窗口。

await ddClient.desktopUI.navigate.viewContainerTerminal(id)

Since

0.3.4

参数

NameTypeDescription
idstringThe full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

返回

Promise<void>

如果容器不存在,则承诺失败。


viewContainerStats

viewContainerStats(id): Promise<void>

导航到容器统计信息以查看CPU、内存、磁盘读/写和网络I/O使用情况。

await ddClient.desktopUI.navigate.viewContainerStats(id)

参数

NameTypeDescription
idstringThe full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

返回

Promise<void>

如果容器不存在,则承诺失败。


图像方法

viewImages

viewImages(): Promise<void>

导航到Docker Desktop中的Images标签。

await ddClient.desktopUI.navigate.viewImages()

返回

Promise<void>


viewImage

viewImage(id, tag): Promise<void>

导航到Docker Desktop中由idtag引用的特定镜像。 在此导航路线中,您可以找到镜像层、命令、创建时间和大小。

await ddClient.desktopUI.navigate.viewImage(id, tag)

参数

NameTypeDescription
idstringThe full image id (including sha), e.g. sha256:34ab3ae068572f4e85c448b4035e6be5e19cc41f69606535cd4d768a63432673.
tagstringThe tag of the image, e.g. latest, 0.0.1, etc.

返回

Promise<void>

如果图像不存在,则承诺失败。


其他方法

viewDevEnvironments

viewDevEnvironments(): Promise<void>

导航到 Docker Desktop 中的 Dev Environments 窗口。

ddClient.desktopUI.navigate.viewDevEnvironments()

返回

Promise<void>


Volume 方法

viewVolumes

viewVolumes(): Promise<void>

导航到Docker Desktop中的标签。

ddClient.desktopUI.navigate.viewVolumes()

返回

Promise<void>


viewVolume

viewVolume(volume): Promise<void>

在Docker Desktop中导航到特定卷。

await ddClient.desktopUI.navigate.viewVolume(volume)

参数

NameTypeDescription
volumestringThe name of the volume, e.g. my-volume.

返回

Promise<void>