dockerdiff

package module
v0.0.0-...-d5b4460 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

Dockerdiff

Docker image export zip tool. Delete redundant layers.

Build && install

# ENV
linux
go
make && make install

use

Usage:
  dockerdiff IMAGE1 IMAGE2 [flags]
  dockerdiff [command]

Examples:
dockerdiff IMAGE1 IMAGE2 -o dst.tar

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Show the Docker version information

Flags:
  -h, --help            help for dockerdiff
  -o, --output string   Write to a file, instead of STDOUT

Use "dockerdiff [command] --help" for more information about a command.

Documentation

Overview

Package dockerdiff +build linux

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffExport

func DiffExport(cli *client.Client, image1Name string, image2Name string, output io.Writer) error

DiffExport 经过对比删减后的镜像

func ImageExport

func ImageExport(cli *client.Client, ImageID string, dst string) error

ImageExport 导出镜像到dst路径下(已解压)

func ImageTar

func ImageTar(path string, output io.Writer) error

ImageTar 镜像包解包

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL