mounting local files to a container
AlyaGomaa opened this issue · comments
The second installation instruction says
"Start a container with your files mounted to the folder /data (docker run -it <image_name> -v /local/folder/with/data:/data /bin/bash
)"
this command throws the following error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"-v\": executable file not found in $PATH": unknown.
ERRO[0005] error waiting for container: context canceled
after a lot of googling i found out that
Anything that is after the image name becomes part of the command that is run in the container
so the above command should be replaced with:
docker run -it --mount type=bind,src=/local/folder/with/data,dst=/data <image_name>