M
M
Mariik2021-11-28 23:40:32
Docker
Mariik, 2021-11-28 23:40:32

How to mount docker volume from under Windows to Linux image?

Hello.

I work from under win10 in the git bash terminal, wsl2 is disabled. In general, everything works, but with docker volumes (volume) somehow it doesn’t add up at all ... when you start it with such a command

docker run -d -p 3000:80 --rm --name feed - v C:/l-projects/docker2:/app feed
docker stubbornly gives me I docker: invalid reference format.

Tried to try different options:
1. change slashes
2.
docker run -d -p 3000:80 --rm --name feed - v ${PWD}:/app feed

etc. Nothing has worked so far. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-11-29
@karabanov

Try this Docker on Windows - Mounting Host Directories

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question