windows 直接下载docker镜像压缩包

📅 2026/7/3 14:31:34 👁️ 阅读次数 📝 编程学习
windows 直接下载docker镜像压缩包

下载工具

https://github.com/regclient/regclient/releases/tag/v0.11.5

在powershell中临时设置代理地址

根据自己的代理配置

$env:HTTP_PROXY="http://127.0.0.1:10809"$env:HTTPS_PROXY="http://127.0.0.1:10809"

在当前powershell中执行示例demo

.\regctl.exe imageexport`docker.io/library/hello-world:latest`"D:\temp\hello-world.tar.gz"`--platformlinux/amd64`--compress`--namehello-world:latest

服务器加载镜像

dockerload-ihello-world.tar.gz