不依赖docker客户端导出docker镜像

此项目已经开源发布至GitHub https://github.com/DockerContainerService/image-save

1、支持linux、windows的amd64、arm64架构机器
2、支持不安装docker客户端情况下导出镜像tar包
3、支持公开镜像仓库/私有镜像仓库
4、支持多线程加速下载镜像
5、支持使用自定义镜像源加速下载镜像

大家在使用过程中如果发现问题,欢迎提Issue

使用方法如下:

imsave

Features

  • Support save docker image to local independent of docker daemon
  • Support for reading registry passwords in environment variables REGISTRY_PASSWORD
  • Support multithreading layer download
  • Support the use of registry mirror

Usage

Install image-save

you can download the latest binary release here

Install from source

go get github.com/DockerContainerService/image-save
cd ${GOPATH}/github.com/DockerContainerService/image-save
make all

Get usage information

[root@tencent ~]# ./imsave -h
Save docker image to local without docker daemon
        Complete documentation is available at https://github.com/DockerContainerService/image-save

Usage:
  imsave [image] [flags]

Flags:
      --arch string     the architecture of the image you want to save
  -d, --debug           enable debug mode
  -h, --help            help for imsave
  -i, --insecure        whether the registry is using http
  -m, --mirror string   use a mirror repository
      --os string       the osFilter of the image you want to save
  -o, --output string   output file
  -p, --passwd string   password of the registry
  -u, --user string     username of the registry
  -v, --version         version for imsave

Usage example

[root@tencent ~]# ./imsave alpine
Using default tag: latest
Using architecture: amd64
[f56be85fc22e]  ... done! [3.37MB in 2.913s; 1.13MB/s]
Output file: alpine_latest.tgz
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

请叫我雯子小姐的小爷

是雯子吖

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值