Public | Automated Build

Last pushed: 2 years ago
Short Description
centos6-apache
Full Description

centos6-apache

centos6-apache コンテナの使用方法

1.git clone

$ git clone git@github.com:hidetarou2013/centos6-apache.git

2.docker build

$ cd centos6-apache
$ docker build -t hidetarou2013/centos6-apache .
$ docker build -t hidetarou2013/centos6-apache:Apache2.2.15 .
$ docker build -t hidetarou2013/centos6-apache:SSL .
$ docker build -t hidetarou2013/centos6-apache:PHP5.3.3 .

3.docker run

■WEBコンテンツ(in DockerHost)
/home/vagrant/web-contents/

$ docker run --name myapache6 -i -t --rm -v /home/vagrant/web-contents/:/var/www/html/ -p 80:80 -p 443:443 hidetarou2013/centos6-apache
$ docker run --name myapache6 -i -t --rm -v /home/vagrant/web-contents/:/var/www/html/ -p 80:80 -p 443:443 hidetarou2013/centos6-apache:Apache2.2.15
$ docker run --name myapache6 -i -t --rm -v /home/vagrant/web-contents/:/var/www/html/ -p 80:80 -p 443:443 hidetarou2013/centos6-apache:SSL
$ docker run --name myapache6 -i -t --rm -v /home/vagrant/web-contents/:/var/www/html/ -p 80:80 -p 443:443 hidetarou2013/centos6-apache:PHP5.3.3

4.TAG:SVN

svn repository : tmp1

5.TAG:SVN_repo1

svn repository : repo1

6.TAG:svn_storage_repo1

svn repository : repo1

with docker image : hidetarou2013/svn-storage

run sample

docker pull hidetarou2013/svn-storage:latest
docker create --name svn-storage hidetarou2013/svn-storage
docker run --volumes-from svn-storage --name myredmine1_svn -t -d -v /home/vagrant/web-contents/:/var/www/html/ -p 80:80 -p 443:443 hidetarou2013/centos6-apache:SVN_repo1
Docker Pull Command
Owner
hidetarou2013
Source Repository

Comments (0)