mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Both lcow_parser.go and linux_parser.go are duplicating the error: "invalid specification: destination can't be '/'" This commit creates a new error called "ErrVolumeTargetIsRoot" that is used by both linux_parser and lcow_parser and remove the duplication in the code. Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com> Upstream-commit: 62143af5437a29d4b95f971d1905cfef763b0847 Component: engine