下载工具

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 image export `
  docker.io/library/hello-world:latest `
  "D:\temp\hello-world.tar.gz" `
  --platform linux/amd64 `
  --compress `
  --name hello-world:latest

服务器加载镜像

docker load -i hello-world.tar.gz

更多推荐