Yong Tang
832ffce833
Improve error message for removing pre-defined (e.g., ingress) network
...
This fix tries to address the issue raised in 24538
where the error message is unclear when removing pre-defined networks:
```
docker network rm ingress
Error response from daemon: rpc error: code = 7 desc = 4vlxuzpk8bxdsxpyvkxluol5g is a pre-defined network and cannot be removed
```
This fix improve the error message so that if network's name is specified
in the `RemoveNetwork`, then error message will contain the name and the ID
(instead of just an ID):
```
docker network rm ingress
Error response from daemon: rpc error: code = 7 desc = ingress (4vlxuzpk8bxdsxpyvkxluol5g) is a pre-defined network and cannot be removed
```
An integration test has been added to cover the changes.
This fix fixes 24538.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
Upstream-commit: de4871165b43ec813940858a1c96ab6bb1fbd776
Component: engine
2016-09-24 11:59:26 -07:00
..
2016-09-12 12:55:26 -07:00
2016-09-07 16:29:02 -07:00
2016-09-08 11:16:27 -07:00
2016-07-28 20:14:14 -04:00
2016-09-12 12:45:08 -05:00
2016-09-07 21:20:41 -07:00
2016-09-07 21:20:41 -07:00
2016-09-07 17:30:35 -04:00
2016-06-13 22:16:18 -07:00
2016-09-07 11:05:58 -07:00
2016-09-20 14:15:37 +00:00
2016-09-16 11:56:15 -07:00
2016-06-07 18:45:27 -07:00
2016-08-30 15:03:18 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-07-11 14:52:27 +08:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 11:56:15 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-23 15:12:36 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-29 15:57:27 -07:00
2016-08-23 15:11:46 -04:00
2016-08-23 21:08:23 -07:00
2016-09-23 12:24:20 +02:00
2016-08-23 15:11:46 -04:00
2016-09-13 16:20:10 -04:00
2016-08-30 09:48:18 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:38:19 -07:00
2016-08-25 14:20:06 -07:00
2016-09-08 17:47:43 -07:00
2016-08-12 12:33:42 +01:00
2016-09-19 17:33:50 -07:00
2016-08-30 22:24:52 +02:00
2016-08-30 15:03:18 -07:00
2016-09-12 09:20:27 -07:00
2016-08-03 12:22:07 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-23 00:26:27 +02:00
2016-08-30 09:31:33 -07:00
2016-08-30 15:20:55 -07:00
2016-09-01 16:28:22 -07:00
2016-09-16 10:05:21 -07:00
2016-06-14 12:23:45 -07:00
2016-09-07 11:05:58 -07:00
2016-08-23 15:11:46 -04:00
2016-09-07 09:45:42 +02:00
2016-05-06 20:42:20 -04:00
2016-06-02 17:17:22 +08:00
2016-09-14 13:14:30 -04:00
2016-05-10 11:28:00 -07:00
2016-04-14 16:22:16 -07:00
2016-09-15 13:50:57 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 09:45:42 +02:00
2016-09-09 11:40:34 -07:00
2016-08-10 08:36:09 +08:00
2016-08-08 11:40:20 +08:00
2016-08-25 16:29:08 -07:00
2016-08-09 09:42:23 +08:00
2016-09-07 17:30:35 -04:00
2016-09-21 11:11:13 -07:00
2016-09-19 17:33:50 -07:00
2016-08-10 08:36:09 +08:00
2016-08-10 08:36:09 +08:00
2016-06-03 19:50:01 +02:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 16:29:02 -07:00
2016-07-28 20:14:14 -04:00
2016-08-26 00:16:49 +08:00
2016-04-13 16:36:34 -04:00
2016-09-24 11:59:26 -07:00
2016-06-01 09:44:25 -07:00
2016-09-07 16:29:02 -07:00
2016-08-16 15:36:13 +08:00
2016-09-07 11:05:58 -07:00
2016-09-05 13:02:13 +03:00
2016-08-25 14:20:06 -07:00
2016-09-07 16:29:02 -07:00
2016-06-01 22:25:17 +08:00
2016-08-23 15:12:36 -04:00
2016-07-28 20:14:14 -04:00
2016-08-23 09:01:25 +08:00
2016-09-08 11:16:27 -07:00
2016-09-12 07:36:52 +00:00
2016-09-12 12:55:26 -07:00
2016-09-07 17:30:35 -04:00
2016-08-10 08:36:09 +08:00
2016-07-29 12:16:03 -04:00
2016-09-09 13:23:41 -04:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-02 19:07:54 -07:00
2016-08-23 15:11:46 -04:00