Sign inSign up

smartslug/lamp

By smartslug

Updated almost 10 years ago

Image
0

134

smartslug/lamp repository overview

Base smartslug LAMP LAMP stack on ubuntu 14.04 using supervisor, php 5.5 +php5-gd and mysql 5

This is a base build. Its virtual host is pointing to the containers /app directory, if you need to run a Laravel project for example, you will have to login to the container and change the document root to point to the proper directory.

Usage Once pulled, run:

docker run -d -p 80:80 -p 3306:3306 --name [name-for-container] -v [host-absolute-path]:/app smartslug/lamp

Then you can clone your code repository into the [host-absolute-path] and it will be mounted into the document root of the container (which is /app)

To login to the container you can run:

docker exec -it [CONTAINER_ID] bash

You will be logged in as root. mysql root password is none!!!! Notice: Once the image runs you just need to stop or start the container that was created, you don't need to run the image again as it will create another container.

Check pulled images: docker images

Check running containers: docker ps add -a to list stopped containers as well

Stop container: docker stop [CONTAINER_ID]

Start container: docker start [CONTAINER_ID]

Tag summary

Content type

Image

Digest

Size

215.7 MB

Last updated

almost 10 years ago

docker pull smartslug/lamp:v1