Public | Automated Build

Last pushed: a year ago
Short Description
Sloncorp base ubuntu LAMP
Full Description

Base Sloncorp LAMP

LAMP stack on ubuntu 14.04 using supervisor, php 5.5 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 sloncorp/ubuntu-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.

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]

Docker documentation

https://docs.docker.com/engine/reference/commandline/

Docker Pull Command
Owner
sloncorp
Source Repository

Comments (0)