Docker synchronizes the files mounted in the mirror to the container, which means that the container shares the files of the host computer.

  docker, question

Background:
Want to put the file in the mirror image
图片描述

That is, as shown in Figure /mnt/code, it is shared with the container.
Use the following command to share and report an error:
图片描述

docker: Error response from daemon: oci runtime error: container_linux.go:295: starting container process cause d “exec: “-v”: executable file not found in $PATH”.

I didn’t find out after half a day of searching, but I found that the directory was indeed mounted by using docker imspect.
图片描述

How to solve …
Thank you very much.

The top is still troubled.