跳转到主要内容
Volume 没有版本:当前内容就是它的内容。完整流程见 挂载受管目录。

实例

然后从作业里引用它:

参数表装不下的几点

  • tp volume push 上传目录下的一切,除掉操作系统和 Office 的杂物。链路快时把 --concurrency 调高;合适的数值取决于链路。
  • volume 引用从不带 @version。带版本后缀会在解析 spec 时被拒绝。
  • tp volume rm 不带 --path 时删的是这个 volume 本身,不只是它的文件。
  • 下载一个 volume 的文件默认关闭,要所有者打开,而且没有任何 CLI 命令能取它们。

确认成功

tp volume ls 会列出这个 volume 和它的文件数。在运行中的作业里,文件在 $VOLUMES_DIR/<叶子名>,只读。

tp volume

Volumes a job can mount

tp volume create

Create an empty volume

tp volume imports

Copies into a volume, and how they are going
除 --help 外没有其他选项。

tp volume ls

List the volumes you can reference
除 --help 外没有其他选项。

tp volume push

Add files to a volume, from here or from storage the platform can reach

tp volume rm

Delete a volume, or files inside it