diff --git a/distribution/config.go b/distribution/config.go index 78cf0530ca..bfea8b0336 100644 --- a/distribution/config.go +++ b/distribution/config.go @@ -198,10 +198,18 @@ func (l *storeLayer) Parent() PushLayer { if p == nil { return nil } - return &storeLayer{ + sl := storeLayer{ Layer: p, ls: l.ls, } + if d, ok := p.(distribution.Describable); ok { + return &describableStoreLayer{ + storeLayer: sl, + describable: d, + } + } + + return &sl } func (l *storeLayer) Open() (io.ReadCloser, error) {