sitespeed.io: Windows sample docker command does not work

https://github.com/sitespeedio/sitespeed.io/blob/fbfce714bfb35d7cfd84c2c34c6c59183fc8befe/docs/documentation/sitespeed.io/installation/index.md

In the Windows section there is the sample:

C:\Users\Vicky> docker pull sitespeedio/sitespeed.io
C:\Users\Vicky> docker run --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io https://www.sitespeed.io -b firefox

The second command does not work from the Windows command line:

docker: Error response from daemon: create $(pwd): "$(pwd)" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Looks like in windows command line it’s %cd% instead of $(pwd) and in Powershell it’s ${PWD}. I can boot up my windows 10 instance and see.

Hey @gitgrimbo thanks for the bug report! Can you test if this works (found it here https://github.com/dduportal-dockerfiles/docker-compose/issues/1#issuecomment-99464292):

docker run --rm -v  /$(pwd):/sitespeed.io sitespeedio/sitespeed.io https://www.sitespeed.io -b firefox-v

If it works I can update the docs. Best Peter