Files
docker-cli/components/engine/daemon
Kir Kolyshkin 71498a13be c.RWLayer: check for nil before use
Since commit e9b9e4ace294230c6b8eb has landed, there is a chance that
container.RWLayer is nil (due to some half-removed container). Let's
check the pointer before use to avoid any potential nil pointer
dereferences, resulting in a daemon crash.

Note that even without the abovementioned commit, it's better to perform
an extra check (even it's totally redundant) rather than to have a
possibility of a daemon crash. In other words, better be safe than
sorry.

[v2: add a test case for daemon.getInspectData]
[v3: add a check for container.Dead and a special error for the case]

Fixes: e9b9e4ace294230c6b8eb
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 195893d38160c0893e326b8674e05ef6714aeaa4)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-02-20 15:43:30 -08:00
..
2017-09-08 18:23:21 -04:00
2017-10-24 15:39:34 -04:00
2017-10-18 10:26:58 +08:00
2017-09-06 12:05:19 -04:00
2017-11-23 15:41:59 -05:00
2017-07-31 13:16:46 -07:00
2018-02-20 15:43:30 -08:00
2017-11-27 17:32:12 -08:00
2017-10-24 15:39:34 -04:00
2017-05-16 14:25:32 -07:00
2017-07-31 13:16:46 -07:00
2017-11-27 17:32:12 -08:00
2018-02-20 15:43:30 -08:00
2017-07-31 13:16:46 -07:00
2017-10-19 11:09:29 -07:00
2017-11-29 11:22:57 -08:00
2017-07-31 13:16:46 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-11-03 01:46:58 +01:00
2018-02-20 15:43:30 -08:00
2017-07-18 12:09:26 +08:00
2017-07-31 13:16:46 -07:00
2017-09-12 12:09:59 -04:00
2017-12-06 13:19:47 -08:00
2017-07-31 13:16:46 -07:00
2016-12-27 21:46:52 +08:00
2017-07-31 13:16:46 -07:00
2017-05-16 11:30:06 -07:00
2017-07-31 13:16:46 -07:00
2017-10-24 15:39:34 -04:00
2017-09-06 12:05:19 -04:00
2017-09-06 12:05:19 -04:00
2017-07-03 13:13:09 -07:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00