Docker: invalid reference format

I tried to run docker run -it -v D:\Program Files\RASA\myproject-2\rasa-x-waapi\myenv\Docker:/app -p 5005:5005 --net my-project-2 rasa/rasa:2.8.2 shell

but I got error docker: invalid reference format. See ‘docker run --help’.

How to solve it?

Try using / or \\ instead of \. A backslash usually means a special character is next (like \n for Enter and \\ for \):

docker run -it -v D:/Program Files/RASA/myproject-2/rasa-x-waapi/myenv/Docker:/app -p 5005:5005 --net my-project-2 rasa/rasa:2.8.2 shell

@jennoi are you making a bridge/network between rasa and rasa-sdk (action server) while using --net ? OR you just running the docker on port 5005? Please explain me this above run command.

OR

Demo command:

docker run -it -v $(pwd):/app -p 5005:5005 --net action-link rasa/rasa:2.8.2 shell

OR

docker run -it -v /c/Users/<path>:/<container path> ... as guide by Chris
OR
docker run -it -v "/c/Users/<path>:/<container path>"


Please try I'm not sure as my machine is Mac or google :)

$(pwd) → present working directory on which you are working.

action-link: you have created a network with the name my-project-2

I hope mean clear to you and this will solve your issue asap. Good Luck!

1 Like

Try folder names lowecase i.e. \Program → \program