简体   繁体   English

如何搜索 Docker 插件

[英]How to search for Docker plugins

On the Docker website they show how they install the plugin vieux/sshfs :在 Docker 网站上,他们展示了如何安装插件vieux/sshfs

$ docker plugin install vieux/sshfs

Plugin "vieux/sshfs" is requesting the following privileges:
- network: [host]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y

vieux/sshfs

They also have a section called Finding a plugin and they show there a list of available plugins.他们还有一个名为“查找插件”的部分,其中显示了可用插件列表

But they don't show the full list.但他们没有显示完整的列表。 For example, the plugin vieux/sshfs doesn't appear on their lists.例如,插件vieux/sshfs没有出现在他们的列表中。

I found it on the Docker Hub:我在 Docker Hub 上找到了它:

在此处输入图片说明

So I understand that the plugins are stored together with the images in the Docker Hub.所以我理解插件是和镜像一起存储在 Docker Hub 中的。

How can I search only for plugins ?如何搜索插件? I don't see any option to mark that I want to see all the exist plugins (not images).我没有看到任何选项来标记我想查看所有现有插件(不是图像)。

So I understand that the plugins are stored together with the images in the Docker Hub.所以我理解插件是和镜像一起存储在 Docker Hub 中的。

You are wrong.你错了。 Plugins are not stored together with the images.插件不与图像存储在一起。 Plugins are distributed as Docker images.插件作为 Docker 镜像分发 The docs specifically note that here :文档在这里特别指出:

Plugins are distributed as Docker images and can be hosted on Docker Hub or on a private registry.插件作为 Docker 映像分发,可以托管在 Docker Hub 或私有注册表上。

So on Docker Hub you will not be able to tell if it's a plugin or not, it's an image and is distributed as one.因此,在 Docker Hub 上,您将无法判断它是否是插件,它是一个映像并作为一个分发。 The only way to tell is to know beforehand.告诉的唯一方法是事先知道。

PS If you want Docker plugins, check out Docker store ;) PS 如果您想要 Docker 插件,请查看Docker 商店;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM