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)
|
|
}
|