mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d45a26d7e2
Previously, Windows only supported running with a OS-managed base image. With this change, Windows supports normal, Linux-like layered images, too. Signed-off-by: John Starks <jostarks@microsoft.com>
16 lines
388 B
Go
16 lines
388 B
Go
package image
|
|
|
|
import "github.com/docker/docker/layer"
|
|
|
|
// TypeLayers is used for RootFS.Type for filesystems organized into layers.
|
|
const TypeLayers = "layers"
|
|
|
|
// NewRootFS returns empty RootFS struct
|
|
func NewRootFS() *RootFS {
|
|
return &RootFS{Type: TypeLayers}
|
|
}
|
|
|
|
// Append appends a new diffID to rootfs
|
|
func (r *RootFS) Append(id layer.DiffID) {
|
|
r.DiffIDs = append(r.DiffIDs, id)
|
|
}
|