Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mounting local files to a container #17

Open
AlyaGomaa opened this issue Jun 17, 2020 · 0 comments
Open

mounting local files to a container #17

AlyaGomaa opened this issue Jun 17, 2020 · 0 comments

Comments

@AlyaGomaa
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant