Kir Kolyshkin
034a285949
ContainerTop: improve error message
...
If "ps" fails, in many cases it prints a meaningful error message
which a user can benefit from. Let's use it.
While at it, let's use errdefs.System to classify the error,
as well as errors.Wrap.
Before:
> $ docker top $CT <any bad ps options>
> Error response from daemon: Error running ps: exit status 1
After:
> $ docker top $CT auxm
> Error response from daemon: ps: error: thread display conflicts with forest display
or
> $ docker top $CT saur
> Error response from daemon: ps: error: conflicting format options
or, if there's no meaningful error on stderr, same as before:
> $ docker top $CT 1234
> Error response from daemon: ps: exit status 1
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
Upstream-commit: a41328d5704b8d1adbcd099fb4bb0697060df806
Component: engine
2018-05-24 18:24:36 -07:00
..
2018-02-05 16:51:57 -05:00
2018-05-17 21:49:51 +09:00
2018-05-21 00:13:04 +02:00
2018-03-16 11:03:43 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-20 12:02:41 +02:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-21 00:13:04 +02:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-03-15 17:56:15 +01:00
2017-09-06 12:05:19 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-19 06:35:54 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-09 11:24:09 -08:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:48:29 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-16 11:25:14 -05:00
2018-02-05 16:51:57 -05:00
2018-04-10 15:14:34 -04:00
2018-05-10 17:16:00 -04:00
2018-05-10 17:16:00 -04:00
2018-03-16 11:03:43 -04:00
2018-02-05 16:51:57 -05:00
2018-04-19 06:35:54 -04:00
2018-03-16 11:03:43 -04:00
2018-02-05 16:51:57 -05:00
2018-04-19 06:35:54 -04:00
2018-02-26 16:49:37 -05:00
2018-05-22 13:12:29 -07:00
2018-04-21 11:03:54 +02:00
2018-05-22 13:12:29 -07:00
2018-04-17 14:06:53 -04:00
2018-04-30 11:14:08 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-17 14:06:53 -04:00
2018-05-03 06:34:14 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-21 00:13:04 +02:00
2018-02-26 16:49:37 -05:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-21 18:26:16 -05:00
2018-03-02 14:05:36 +01:00
2018-03-02 14:05:36 +01:00
2018-02-05 16:51:57 -05:00
2018-05-11 10:06:33 -04:00
2018-03-13 21:24:43 -07:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-03-16 11:03:43 -04:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-17 14:07:08 -04:00
2018-02-05 16:51:57 -05:00
2018-03-16 11:03:43 -04:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:48:29 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-19 11:19:19 +01:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:49:37 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-14 15:48:32 -04:00
2018-02-21 12:28:13 +01:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:49:37 -05:00
2018-02-27 08:48:31 -08:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-10 17:16:00 -04:00
2018-05-10 12:53:37 -07:00
2018-05-14 13:49:47 +02:00
2018-05-10 17:16:00 -04:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-05-22 13:12:29 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:49:37 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-26 16:49:37 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-05-24 18:24:36 -07:00
2018-02-05 16:51:57 -05:00
2018-05-21 00:13:04 +02:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-05 16:51:57 -05:00
2018-02-07 14:27:09 -05:00
2018-02-07 14:27:09 -05:00
2018-04-19 06:35:54 -04:00
2018-04-19 06:35:54 -04:00
2018-04-19 06:35:54 -04:00
2018-05-17 19:28:27 +02:00
2018-04-19 06:35:54 -04:00
2018-04-23 13:52:44 -07:00
2018-02-05 16:51:57 -05:00