| ... | ... |
@@ -15,6 +15,9 @@ import ( |
| 15 | 15 |
type Filesystem struct {
|
| 16 | 16 |
RootFS string |
| 17 | 17 |
RWPath string |
| 18 |
+ // The layers to be mounted on top of each other via aufs. |
|
| 19 |
+ // Layers are ordered top-to-bottom: the first layer in the list will be mounted on top of the others. |
|
| 20 |
+ // In other words, THE BASE IMAGE SHOULD BE LAST! |
|
| 18 | 21 |
Layers []string |
| 19 | 22 |
} |
| 20 | 23 |
|
| ... | ... |
@@ -49,7 +49,7 @@ func (store *Store) Import(name string, archive io.Reader, stderr io.Writer, par |
| 49 | 49 |
} |
| 50 | 50 |
layers := []string{layer}
|
| 51 | 51 |
if parent != nil {
|
| 52 |
- layers = append(parent.Layers, layers...) |
|
| 52 |
+ layers = append(layers, parent.Layers...) |
|
| 53 | 53 |
} |
| 54 | 54 |
var parentId string |
| 55 | 55 |
if parent != nil {
|