Sign inSign up

karticgharami/php-apache-mariadb

By karticgharami

•Updated almost 2 years ago

php:8.2-apache, Maria-DB-11.4 and Phpmyadmin

Image
Developer tools
Web servers
Databases & storage
0

42

karticgharami/php-apache-mariadb repository overview

⁠Dockerfile build and create an image:

⁠Exp. docker build -t <image> (Class) .
⁠$ docker build -t php-8.2-apache-mariadb .
⁠Create container (-d for detached) from an image that was created by docker file.
⁠docker run -d --name <container> (Object) <image> (Class)
⁠Create a container (-it --rm for interactive and rm container when terminal closed) from an image which created by docker file.
⁠docker run -it --rm --name <container> (Object) <image> (Class)

⁠Create a container from an image without a Docker file.

⁠$ docker run -d -p 80:80 --name <container> (object) -v "$PWD/<app-dir>":/var/www/html <image:tag> (class)
⁠$ docker run -d -p 80:80 --name php-8.2-apache-mariadb -v "$PWD/src":/var/www/html php-8.2-apache-mariadb
⁠Creating containers and getting interactive mode:
⁠$ docker run -it --name container-name image-repository:tag /bin/bash

Get container interactive mode:

⁠$ docker exec -it <container> /bin/bash

View Details at https://github.com/devkartic/php-apache-mariadb⁠

Tag summary

Content type

Image

Digest

sha256:f55078c2f…

Size

163.7 MB

Last updated

almost 2 years ago

docker pull karticgharami/php-apache-mariadb:v1