HUB
Sign inSign up

onjectiondevops/lamp7.0

By onjectiondevops

•Updated about 8 years ago

Apache-php-mysql-phpmyadmin container

Image
0

426

onjectiondevops/lamp7.0 repository overview

⁠To start docker container in detach/background mode.

docker run -d onjectiondevops/lamp7.0:latest tail -f /dev/null

⁠To bind container ports with host machine. Specify by -p

docker run -d -p8081:80 -p3308:3306 -p8082:443 onjectiondevops/lamp7.0:latest tail -f /dev/null

The above command bind base/host machine port 8080 with container port 80, hostmachine port 3308 with container port 3306, host-machine port 8081 with container port 443

⁠To mount host/base machine volume inside docker container. We can specify multiple volumes by -v

docker run -d -p8081:80 -p3308:3306 -p8082:443 -v /opt/mydata:/var/www/html/ -v /root/test/:/opt/ onjectiondevops/lamp7.0:latest tail -f /dev/null

⁠To list the running container in host machine

docker ps

⁠To login inside container

docker exec -it bash

⁠Below are the container specifications

Ubuntu version: 16.04.5 LTS Apache version: Apache/2.4.18 Php version: 7.0.32 Mysql version: 5.7.24 PhpMyAdmin

⁠To start or restart the Mysql and Apache run command inside container:

bash /start.sh

Mysql username:- root Mysql root password:- toor

⁠Open PhpMyAdmin in browser:

http://:/phpmyadmin/

https://192.168.1.5:8081/phpmyadmin⁠

https://192.168.1.5:8081/phpinfo.php⁠

If need more customization then mail us your requirements at [email protected]⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
302.9 MB
Last updated
about 8 years ago
docker pull onjectiondevops/lamp7.0:latest