mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Found a couple of places where pretty low level errors were never being wrapped with any sort of context. For example, if you try to create a local volume using some bad mount options, the kernel will return `invalid argument` when we try to mount it at container start. What would happen is a user would `docker run` with this volume and get an error like `Error response from daemon: invalid argument`. This uses github.com/pkg/errors to provide some context to the error message without masking the original error. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 2a5e85e2e871bf037c976471cf8a14da22ddd9a9 Component: engine