daemon: getInspectData(): skip graphdriver data for snapshotters
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
68d7736e9e
commit
313a7d716d
1 changed files with 5 additions and 0 deletions
|
@ -184,6 +184,11 @@ func (daemon *Daemon) getInspectData(container *container.Container) (*types.Con
|
|||
|
||||
contJSONBase.GraphDriver.Name = container.Driver
|
||||
|
||||
if daemon.UsesSnapshotter() {
|
||||
// Additional information only applies to graphDrivers, so we're done.
|
||||
return contJSONBase, nil
|
||||
}
|
||||
|
||||
if container.RWLayer == nil {
|
||||
if container.Dead {
|
||||
return contJSONBase, nil
|
||||
|
|
Loading…
Add table
Reference in a new issue