Docker UberGallery Container Tutorial Youtube
docker pull php:7.4.6-apache
Pull DockerFile from the Project repository, after execute:
docker build -t gallery:1.0 .
Run the image for compile container, binding associated ports:
docker run -d --name UberGallery1 -p 8080:80 gallery:1.0
Service | Port | Usage |
---|---|---|
UberGallery1 | 8080 | When using UberGallery1 run , visit http://localhost:8080/UberGallery in your browser |
Run the sentence for create volume:
docker volume create volumen-images
Run the image for compile container, binding associated ports and asociate volume:
docker run -d --name UberGallery2 -p 8080:80 -v volumen-images:/var/www/html/UberGallery/gallery-images/ gallery:1.0
Service | Port | Usage |
---|---|---|
UberGallery2 | 8080 | When using UberGallery2 run , visit http://localhost:8080/UberGallery in your browser |
Volume | Description |
---|---|
var/www/html/UberGallery/gallery-images/ | The location of the Gallery of UberGallery2 application root. |
NOTE: Use images .PNG