mirror of https://github.com/docker/docs.git
Fixed bug which caused AUFS layers to be mounted in the wrong order.
This commit is contained in:
parent
903f091adc
commit
2dadcf9b81
|
@ -15,6 +15,9 @@ import (
|
||||||
type Filesystem struct {
|
type Filesystem struct {
|
||||||
RootFS string
|
RootFS string
|
||||||
RWPath string
|
RWPath string
|
||||||
|
// The layers to be mounted on top of each other via aufs.
|
||||||
|
// Layers are ordered top-to-bottom: the first layer in the list will be mounted on top of the others.
|
||||||
|
// In other words, THE BASE IMAGE SHOULD BE LAST!
|
||||||
Layers []string
|
Layers []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ func (store *Store) Import(name string, archive io.Reader, stderr io.Writer, par
|
||||||
}
|
}
|
||||||
layers := []string{layer}
|
layers := []string{layer}
|
||||||
if parent != nil {
|
if parent != nil {
|
||||||
layers = append(parent.Layers, layers...)
|
layers = append(layers, parent.Layers...)
|
||||||
}
|
}
|
||||||
var parentId string
|
var parentId string
|
||||||
if parent != nil {
|
if parent != nil {
|
||||||
|
|
Loading…
Reference in New Issue