Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 930 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 930 Bytes

Docker Image for LAMP

Repository for building a Docker image with apache, mariadb and phpmyadmin.

Before using this dockerfile, please make sure you have already install Docker on your device.

Quick Start (First Use)

$ docker build . -t ubuntu:dev
$ docker run -p 9080:80 -p 9022:22 -p 9306:3306 -it --name ubuntu-dev ubuntu:dev
$ docker exec -it ubuntu-dev  bash

Build Image

$ docker build . -t ubuntu:dev

Run Image

$ docker run -p 9080:80 -p 9022:22 -p 9306:3306 -it --name ubuntu-dev ubuntu:dev

Initialize Environment

$ docker exec -it ubuntu-dev bash # Getting into container shell

Start the Container

$ docker start ubuntu-dev

Stop the Container

$ docker start ubuntu-dev

Reset Mysql Password

Please reset the password when you first use Mysql.

Environment variables

  • PHPMYADMIN_VERSION (ex. 5.2.0)