Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-centos-lamp

Contains.

  • Apache
  • MySQL
  • PHP(5.5)

1. Set your timezone, loginaccount to Dockerfile

  • Dockerfile

    ENV TIMEZONE Asia/Tokyo
    ENV LOGINUSER guest
    ENV LOGINPW loginpassword
    

2. Build docker image

  # docker build -t centos:lamp .
  # docker images
  REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
  centos              lamp                0e15f4cf4d07        23 hours ago        562.9 MB

3. Run docker container

  # docker run -d -t -p 12812:2812 -p 10080:80 -p 10022:22 centos:lamp
  # docker ps -a
  CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                                                                   NAMES
  d2d958f98834        centos:lemp         /usr/bin/monit -I   2 hours ago         Up 2 hours          0.0.0.0:10022->22/tcp, 0.0.0.0:10080->80/tcp, 0.0.0.0:12812->2812/tcp   sick_hypatia

4. Access

monit
http://$DOCKER_HOST_IP:12812/
With Browser

Place your website to webroot(/var/www/html).

http://$DOCKER_HOST_IP:10080/
With ssh
  $ ssh -p 10022 -l guest $DOCKER_HOST_IP
Docker Pull Command
Owner
supertaihei02

Comments (0)