Files
docker-cli/components/engine/daemon
Yuanhong Peng fc7d1ce752 Ignore layer does not exist error from docker images
Fix #31350

As we can see in `daemon.Images()`, there is a gap between
`allImages = daemon.imageStore.Map()` and `l, err :=
daemon.layerStore.Get(layerID)`, so images which still exist when we hit
`allImages = daemon.imageStore.Map()` may have already been deleted when we hit
`l, err := daemon.layerStore.Get(layerID)`.

```
	if danglingOnly {
        	allImages = daemon.imageStore.Heads()
	} else {
        	allImages = daemon.imageStore.Map()
	}

	...

	for id, img := range allImages {
		...

		layerID := img.RootFS.ChainID()
        	var size int64
	        if layerID != "" {
        	        l, err := daemon.layerStore.Get(layerID)
                	if err != nil {
                        	return nil, err
                	}
```

Signed-off-by: Yuanhong Peng <pengyuanhong@huawei.com>
Upstream-commit: 2b9694c29e3bbbce23f0c4009f908a23c115c598
Component: engine
2017-03-16 09:21:51 +08:00
..
2017-02-07 11:08:37 -08:00
2016-11-14 15:15:09 -05:00
2017-03-09 14:35:13 -08:00
2016-09-07 11:05:58 -07:00
2016-10-28 11:06:54 -07:00
2016-12-21 22:42:47 +01:00
2016-10-25 06:43:54 +00:00
2017-02-07 11:08:37 -08:00
2016-11-16 13:38:45 -08:00
2017-02-15 21:57:27 +08:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-17 13:10:48 -05:00
2017-02-07 11:08:37 -08:00
2016-09-07 11:05:58 -07:00
2016-11-08 17:41:56 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2016-12-27 23:30:50 +08:00
2016-12-01 09:38:08 -08:00
2016-10-06 22:48:53 -03:00
2016-09-07 11:05:58 -07:00
2016-10-27 10:34:38 -07:00
2016-09-13 09:55:35 -04:00
2017-02-02 11:25:07 -08:00
2017-02-15 21:57:27 +08:00
2017-01-11 21:35:59 +08:00
2016-12-27 21:46:52 +08:00
2016-09-07 11:05:58 -07:00
2017-02-01 14:43:58 -05:00
2016-09-21 12:36:52 +02:00
2016-09-16 11:56:15 -07:00
2016-12-27 23:30:50 +08:00
2016-09-07 11:05:58 -07:00
2016-11-21 19:56:01 +08:00