Skip to content

duckcone/Docker-Image-for-LAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published