分享好友 最新动态首页 最新动态分类 切换频道
Docker volume plugins
2024-12-27 00:13

Docker Engine volume plugins enable Engine deployments to be integrated with external storage systems such as Amazon EBS, and enable data volumes to persist beyond the lifetime of a single Docker host. See the plugin documentation for more information.

  • If used as part of the v2 plugin architecture, mountpoints that are part of paths returned by the plugin must be mounted under the directory specified by in the plugin configuration ( )
  • Add field to response ( )
  • Add to get capabilities of the volume driver ( )
  • Add which gets the details about the volume ( )
  • Add which lists all volumes owned by the driver ( )
  • Initial support for volume driver plugins ( )

To give a container access to a volume, use the and flags on the command. The (or ) flag accepts a volume name and path on the host, and the flag accepts a driver type.

The (or ) flag takes a value that is in the format . The two parts of the value are separated by a colon () character.

  • The volume name is a human-readable name for the volume, and cannot begin with a character. It is referred to as in the rest of this topic.
  • The is the path on the host (v1) or in the plugin (v2) where the volume has been made available.

Specifying a in conjunction with a allows you to use plugins such as to manage volumes external to a single host, such as those on EBS.

The container creation endpoint () accepts a field of type allowing to specify the name of the driver. If not specified, it defaults to (the default driver for local volumes).

If a plugin registers itself as a when activated, it must provide the Docker Daemon with writeable paths on the host filesystem. The Docker daemon provides these paths to containers to consume. The Docker daemon makes the volumes available by bind-mounting the provided paths into the containers.

Request:

Instruct the plugin that the user wants to create a volume, given a user specified volume name. The plugin does not need to actually manifest the volume on the filesystem yet (until is called). is a map of driver specific options passed through from the user request.

Response:

Respond with a string error if an error occurred.

Request:

Delete the specified volume from disk. This request is issued when a user invokes to remove volumes associated with a container.

Response:

Respond with a string error if an error occurred.

Request:

Docker requires the plugin to provide a volume, given a user specified volume name. is called once per container start. If the same is requested more than once, the plugin may need to keep track of each new mount request and provision at the first mount request and deprovision at the last corresponding unmount request.

is a unique ID for the caller that is requesting the mount.

Response:

  • v1

  • v2

is the path on the host (v1) or in the plugin (v2) where the volume has been made available.

is either empty or contains an error string.

Request:

Request the path to the volume with the given .

Response:

  • v1

  • v2

Respond with the path on the host (v1) or inside the plugin (v2) where the volume has been made available, and/or a string error if an error occurred.

is optional. However, the plugin may be queried again later if one is not provided.

Request:

Docker is no longer using the named volume. is called once per container stop. Plugin may deduce that it is safe to deprovision the volume at this point.

is a unique ID for the caller that is requesting the mount.

Response:

Respond with a string error if an error occurred.

Request:

Get info about .

Response:

  • v1

  • v2

Respond with a string error if an error occurred. and are optional.

Request:

Get the list of volumes registered with the plugin.

Response:

  • v1

  • v2

Respond with a string error if an error occurred. is optional.

Request:

Get the list of capabilities the driver supports.

The driver is not required to implement . If it is not implemented, the default values are used.

Response:

最新文章
翼真L380提升幸福感 智能配置和质感都不输大牌
刚步入社会时,收入一般不会太可观,此时一辆经济高性价比的车型往往是最合适的。在与同级别车型的竞争中,在空间表现上值得一说。接下来就和小编一起看看吧。先来看下翼真L380的外观,翼真L380前脸提升了整车的档次,让人过目不忘。头灯非
阴阳师百闻牌输出式神卡牌评分 最强输出单卡排名攻略
在阴阳师百闻牌里,输出类式神是现在最为主流的式神,但它们的单卡的质量并不统一,究竟哪些单卡强度高,应该是我们合卡和抽卡的目标呢?下面就为大家带来详细的攻略介绍,一起来看看吧! 更多攻略点击:阴阳师百闻牌式神大全 这是一篇基于
惠州seo工作室(惠州seo公司)
大家好,今天小编关注到一个比较有意思的话题,就是关于惠州seo工作室的问题,于是小编就整理了1个相关介绍惠州seo工作室的解答,让我们一起看看吧。专业网站建设如何给企业带来最大回报?随着早期互联网的兴起,网站是一个公司的标配,可
第十一章 文件操作_C语言插入、删除、更改文件内容
我们平时所见的文件,例如 txt、doc、mp4 等,文件内容是按照从头到尾的顺序依次存储在磁盘上的,就像排起一条长长的队伍,称为顺序文件。 除了顺序文件,还有索引文件、散列文件等,一般用于特殊领域
微信小程序开发多少钱一个月
在当今互联网飞速发展的时代,微信小程序因其便捷、功能多样和用户量庞大,成为众多企业、商家乃至个体创业者拓展线上业务的重要工具。对于想要开发微信小程序的企业而言,最关心的问题之一就是费用问题。在合肥开发一款微信小程序的费用到
淘宝关键词排名优化怎么做?影响因素有哪些?
标题是淘宝店铺自然搜索流量最重要的入口,如果宝贝的标题没有做好,那么后续的运营也就没有什么意义了。想要获取自然搜索流量,那么标题的关键词就得有权重,有排名。一、淘宝标题关键词如何优化靠前?首先,搜索引擎会先抓取大热词,大热
转:Sql 四大排名函数(ROW_NUMBER、RANK、DENSE_RANK、NTILE)简介
https://www.cnblogs.com/52xf/p/4209211.html    附上表结构和初始数据图:用法: 一:语法(用法):      rank() over([partition by col1] order by col2)      dense_rank() over([partition by col
苹果手机请启用javascript,请启用javascript教程
JavaScript是一种广泛应用于网页开发的脚本语言,它为网页增加了交互性和动态功能。如果您想在手机上开发和运行JavaScript代码,您需要确保手机浏览器支持JavaScript并已启用该功能Deepl降重。下面是一些简单的步骤,帮
相关文章
推荐文章
发表评论
0评