mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Validation of Mounts was only performed on container _creation_, not on container _start_. As a result, if the host-path no longer existed when the container was started, a directory was created in the given location. This is the wrong behavior, because when using the `Mounts` API, host paths should never be created, and an error should be produced instead. This patch adds a validation step on container start, and produces an error if the host path is not found. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 7cb96ba308dc53824d2203fd343a4a297d17976e Component: engine