Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

414
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda