TiredOfProgramming
TiredOfProgramming

Reputation: 855

Docker & Zalenium: Unable to start due to invalid reference format error

Really new to docker and docker infrastructure. So from the official Zalenium github page I followed all the steps successfully until I get to the point:

docker run --rm -ti --name zalenium -p 4444:4444 \
           -v /var/run/docker.sock:/var/run/docker.sock \
           -v /tmp/videos:/home/seluser/videos \
           --privileged dosel/zalenium start

and after executing it I'm getting:

> docker: invalid reference format. 
> See 'docker run --help'

While doing research here on SOF, I've landed here and here, but nothing seems to work in my situation. I've tried to replace --rm -ti to the end of the expression: didn't work

docker run --name zalenium -p 4444:4444 \
           -v /var/run/docker.sock:/var/run/docker.sock \
           -v /tmp/videos:/home/seluser/videos \
           --privileged --rm -ti dosel/zalenium start

I'm sure there is a specific format that I have to follow, but can't find a clue to it (missing comma, wrong backslash, unnecessary whitespace). Appreciate for your help.

Upvotes: 0

Views: 394

Answers (1)

diemol
diemol

Reputation: 613

I just noticed that the command example we have does not work for Windows, I just changed the docs to show how to run a multiline command in Windows.

Here is the way:

docker run --rm -ti --name zalenium -p 4444:4444 ^
  -v /var/run/docker.sock:/var/run/docker.sock ^
  -v /c/Users/your_user_name/temp/videos:/home/seluser/videos ^
  --privileged dosel/zalenium start      

Upvotes: 2

Related Questions