导出镜像
docker save -o xxx.tar image1 image2 ….imagen
解压tar包之后,有下面一些文件
manifest
type manifestItem struct {
Config string
RepoTags []string
Layers []string
Parent image.ID `json:",omitempty"`
LayerSources map[layer.DiffID]distribution.Descriptor `json:",omitempty"`
}
config是镜像的config文件
RepoTags一般都是null
Layres是各个层的目录
config文件的格式
// V1Image stores the V1 image configuration.
type V1Image struct {
// ID is a unique 64 character identifier of the image
ID string `json:"id,omitempty"`
//