Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

410
Views
Docker:"invalid reference format" in Powershell

I have pulled a node js image from the docker hub and with node express generator I generated a little sample site.
I want to create a volume inside a Docker container and map the site folder with that volume.

I want to run the node from the docker container.
I am using this command:

docker run -p 8003:3000 -v $(pwd):/var/www -w "/var/www" node npm start

Could anyone please help me out?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

First, check if you have typed or copy-pasted the docker run command.
In the later case, re-type the '-' (dash) manually in order to avoid using by mistake a minus

 docker run -p 8003:3000 -v
           ^^^          ^^^
 type manually *all* those '-'

Second, check if the $(pwd) should be, in a Powershell session, -v ${PWD} instead.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!