Sebastiaan van Stijn
462d0ff5aa
client: Client.doRequest: simplify permission check and unwrap error
...
Previously, we were using os.IsPermission, which doesn't unwrap errors;
change to use `errors.Is` to detect permission errors, and unwrap the
error to remove information about the request, which is irrelevant if
we weren't able to connect in the first place.
Also tweak the error slightly to not assume "docker socket", instead
mentioning "docker API".
Before this;
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.51/version ": dial unix /var/run/docker.sock: connect: permission denied
With this patch applied:
permission denied while trying to connect to the docker API at unix:///var/run/docker.sock: dial unix /var/run/docker.sock: connect: permission denied
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-07-23 01:20:01 +02:00
..
2016-09-07 11:05:58 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2023-03-31 16:15:01 -04:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-02 14:38:47 +02:00
2025-06-02 14:38:47 +02:00
2025-07-21 09:30:26 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 21:41:39 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-22 10:55:33 +02:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-22 10:55:33 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 21:41:39 +02:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-22 10:55:33 +02:00
2025-07-21 09:30:26 -07:00
2025-07-21 09:30:26 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 22:51:18 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-06-26 15:33:40 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-17 11:20:17 +02:00
2025-07-17 11:20:17 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2023-11-14 12:27:35 +01:00
2025-07-21 22:51:18 +02:00
2025-07-23 01:20:01 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-19 12:04:09 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-05-30 15:59:10 +02:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00
2025-07-21 09:30:05 -07:00