Home > Enterprise >  Docker run command returns "invalid reference format"
Docker run command returns "invalid reference format"

Time:07-20

I'm using docker on Windows and typed following command on powershell to get container:

docker run -v C:\Users\inter\Documents\work:\work -p 8888:8888 --name my-env datascientistus\ds-python-env

Although I could pull docker image from docker hub successfully, I got "invalid reference format" error.

I coundn't understand what's wrong with this command.

Any idea really appreciated. Thank you.

CodePudding user response:

The image name is:

datascientistus/ds-python-env

not

datascientistus\ds-python-env

Backslashes are not valid in an image name.

For others running into this issue, see this question for a more complete answer.

  • Related