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

418
Views
No se puede montar el archivo como un volumen en nginx

Soy nuevo en Docker y recién comencé a aprender. Me he enfrentado a un problema para montar index.html en Nginx. Estoy usando Docker Toolbox para Windows 10 Home. Configuré la carpeta compartida para mi máquina virtual 1 .

Cuando quiero montar un servidor con index.html me aparece el problema 404 Not Found. Utilizo el siguiente comando para hacer esto.

ejecución del contenedor docker --name con6 -p 80:80 -v /c/Docker/html://usr/share/nginx/html nginx

¿Alguien podría ayudarme? gracias de antemano

Tengo la siguiente entrada después de cargar localhost:

2020/03/29 21:59:14 [error] 6#6: *1 "/usr/share/nginx/html/index.html/index.html" no se encuentra (20: No es un directorio), cliente: 192.168.99.1, servidor: host local, solicitud: "GET /index.html/ HTTP/1.1", host: "192.168.99.100"

192.168.99.1 - - [29/mar/2020:21:59:14 +0000] "GET /index.html/ HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit /537.36 (KHTML, como Gecko) Chrome/80.0.3987.149 Safari/537.36" "-"

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

¿Puede ejecutar el siguiente comando para montar el HTML en el contenedor?

 docker container run --name con6 -p 80:80 --mount type=bind,source="/c/Docker/html",target="/usr/share/nginx/html" nginx

Para referencia:- https://docs.docker.com/storage/bind-mounts/

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!