Newshot

Vercel 容器镜像仓库支持 2GB 压缩镜像层

AI summary

Vercel Container Registry 现在支持每个压缩镜像层最大 2GB,此前上限为 500MB,镜像总大小限制仍为 15GB。仓库兼容 docker push、docker pull 和 docker tag 等标准工作流,推送镜像时会自动创建仓库。仓库可设为公开供任意 Vercel 团队只读拉取,也可通过仪表盘或 vercel vcr permissions 共享给最多 100 个指定团队。

Translation(model translation, not the source's own text)

Vercel Container Registry 现在支持每个压缩镜像层最大 2 GB,此前为 500 MB,镜像总大小上限仍为 15 GB。

该 Registry 兼容 docker push、docker pull 和 docker tag 等标准工作流,推送镜像时会即时创建仓库。


        docker buildx build --push -t vcr.vercel.com/team/project/repository:tag .
      

仓库可以设为公开,供任意 Vercel 团队只读拉取;也可以在仪表盘中与最多 100 个指定团队共享,或通过 vercel vcr permissions 共享。Vercel Sandbox 所运行的 Vercel Managed Images 由普通的公开仓库提供,这些仓库使用任何团队都能用于自家镜像的同一套公开仓库功能构建。

使用 Vercel CLI v58.3.0 或更高版本中的 vercel vcr CLI 命令管理仓库、镜像和标签,并通过 vercel/vcr-action/login action 配合 GitHub OIDC 从 GitHub Actions 登录 CI 工作流,从而无需长期有效的 registry 凭据。如果推送镜像的后台优化失败,该镜像会在仪表盘中显示错误状态,再次推送同一镜像即可重试转换。

完整设置请参阅文档。

Only about 624 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗