Public Repository

Last pushed: 2 days ago
Short Description
Docker image: ubuntu, nano, apache2, php5, php5-mcrypt, php5-apcu
Full Description

Download images berukuran 361.8 MB
$ docker pull santent/hpm

Lihat image yang sudah di-pull
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
santent/hpm latest e79e8bf9f05a 8 minutes ago 361.8 MB

Jalankan docker/membuat container
$ docker run --name hpm -h darvm -p 90:80 -p 91:81 -p 92:82 -it -v /private/var/www/html/:/var/www/html/ santent/hpm /bin/bash
$ docker run --name {namaContainer} -h {hostname} -p {port1}:{portcontainer1} -p {port2}:{portcontainer2} -p {port3}:{portcontainer3} -it -v {pathLocalYangDisync}:/var/www/html santent/hpm /bin/bash

Pastikan cats di path local /var/www/html/cats dan hpm di /var/www/html/hpm-api

Masuk ke bash di dalam container, jalankan apache
$ apachectl -k start

Jalankan tunneling ke hpm
$ ssh -L 3307:127.0.0.1:3306 nuwira@ip-hpm

Buka browser
localhost:90 : localhost
localhost:91 : cats
localhost:92 : hpm-api

Masuk ke bash docker yang run
$ docker exec -it hpm /bin/bash

Docker Pull Command
Owner
santent

Comments (0)