Skip to content

IESSAUCES/docker-apache2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpd - Servidor web

Docker hub: image httpd

Ejecutar el comando para contruir una imagen Docker

 $docker build -t my-apache2 .

Ejecutar la imagen docker

  $ docker run -dit --name my-running-app -p 8080:80 my-apache2
  

Ejecutar la imagen usando un directorio compartido

En Windows:

docker run --rm -it -d -p 8000:80 -v "%cd%\public-html:/usr/local/apache2/htdocs/ my-apache2

En Linux:

docker run --rm -it -d -p 8000:80 -v "$(pwd)"\public-html:/usr/local/apache2/htdocs/ my-apache2

En PowerShell

docker run --rm -it -d -p 8000:80 -v "%{PWD}"\public-html:/usr/local/apache2/htdocs/ my-apache2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published