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

228
Vistas
Docker httpd doesn't match a volume

I pulled httpd: docker pull httpd.

When I started the container:

docker run --name httpd --rm -p 80:80 -v $(pwd)/htdocs:/htdocs -d httpd

I see the original index.html page even if in my htdocs I put my personal index page.

Can someone help me?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You're mounting the directory on /htdocs, but that's not where Apache is looking for files. If you examine the Apache configuration in the httpd image, DocumentRoot points at /usr/local/apache2/htdocs:

root@6eaea8a511b9:/usr/local/apache2# grep DocumentRoot conf/httpd.conf
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/usr/local/apache2/htdocs"

So your command line needs to be:

docker run --name httpd --rm -p 80:80 -v $(pwd)/htdocs:/usr/local/apache2/htdocs -d httpd

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