docker mount -v host directory and --mount difference

When using the -v, if there is no file on the host, will be created automatically,

But if you use --mount, the host does not have this file error can not find the file, and creation fails

Guess you like

Origin www.cnblogs.com/zhaojingyu/p/11599473.html