分享好友 最新动态首页 最新动态分类 切换频道
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:

最新文章
让AI激发创作!首届豆包MarsCode AI编程挑战赛报名开启
在科技变革浪潮中,编程领域持续演进,AI为其注入无限活力。我们的目标是期望为广大编程爱好者与专业开发者打造一个开放、多元且相当挑战性的平台,促进技术交流与创新思维的碰撞,加速AI技术在编程领域的深度融合与应用落地。在这里你的创
考研区域经济学专业容易上岸的大学怎么选择
对于准备考研的同学来说,选择一个合适的学校和专业至关重要。在众多专业中,考研区域经济学大学排名引起了越来越多同学的关注。区域经济学不仅涉及经济学的基本理论,还结合了地理、社会等多方面的知识,非常适合对社会发展有兴趣的同学。
管家婆2024精准资料大全|讲解词语解释释义
管家婆2024精准资料大全——词语解释释义详解本文将详细介绍管家婆2024精准资料大全中的相关词语,并对其中的关键词进行解释和释义,通过本文,读者可以了解管家婆资料的准确性和可靠性,掌握相关术语的含义,从而更好地利用这些资料。管家
站酷网站建设,打造创意生态新标杆,引领数字未来之光
本文目录导读:智能创作助手,灵感一触即发云端协作,打破地域限制AI绘画,让创意更上一层楼虚拟现实,沉浸式体验站酷社区,创意无限可能在这个信息爆炸的时代,创意的火花需要更为广阔的舞台,站酷网站建设,一款融合前沿科技与极致用户体
节日晚会快闪2
2019年度盛会年度盛会年度盛会3212019准备好了没准备好了没准备好了没准备好了没接下来开始接下来开始你的表演年会正式开始领导致词领导致词今晚我们在这里欢聚一堂,在这辞旧迎新之际我首先祝大家新年快乐。在过去的一年里,我们职工团结
谷歌SEO主页怎么优化,才能提升排名?
在竞争激烈的互联网世界中,谷歌搜索引擎优化(SEO)已经成为网站获取流量、提升品牌知名度的关键。作为一名在SEO领域摸爬滚打多年的从业者,我深知优化谷歌主页排名的重要性。无论是小型企业还是大型品牌,都渴望在谷歌搜索结果中获得更高
跨平台数据整合和数字算力矩阵!
跨平台数据整合和数字算力矩阵!前文引言:微三云发布了新一代云平台 OS 数字化操作系统。该系统拥有灵活而强大的零售 PaaS 平台,能够助力企业实现业务zhongtai、业务应用、业务前端等功能的模块化组建,实时的前后 端协同;并基于统一的
高效关键词推广优化软件大揭秘,开启企业互联网营销新时代
高效关键词推广优化软件揭秘,助力企业互联网营销新篇章。该软件通过智能分析,精准定位关键词,优化推广策略,提升企业在线曝光度和率,为企业带来更广阔的市场机遇和营销效益。随着互联网的飞速发展,已成为企业推广产品和服务的重要手段
相关文章
推荐文章
发表评论
0评