Docker Toolboxで起動しました
## . ## ## ## == ## ## ## ## ## === /"""""""""""""""""\___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\_______/ docker is configured to use the default machine with IP aaa.sss.yyy.xxx For help getting started, check out the docs at https://docs.docker.com $
結構かわいい感じ
Dockerfile
Dockerのイメージを定義するやつ
詳しくは以下ら辺を参照
いまさら聞けないDocker入門(3):Dockerfileとdocker buildコマンドでDockerイメージの作成 (1/2) - @IT
作成
sample1
# centos FROM centos:6 MAINTAINER mshige1979 # update RUN rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm RUN rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # yum update RUN yum clean all RUN yum -y update
sample2
# centos FROM mshige1979/centos6 MAINTAINER mshige1979 # pacakge install RUN yum install -y \ openssh-server \ httpd \ supervisor # mysql RUN yum install -y http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm RUN yum install -y mysql-community-* # php RUN yum install -y --enablerepo=remi-php56 \ php \ php-opcache \ php-devel \ php-mbstring \ php-mcrypt \ php-mysqlnd \ php-phpunit-PHPUnit \ php-pecl-xdebug \ php-pecl-xhprof
※まだ、デーモンで複数のプロセスは起動できない(´・ω・`)
ビルド
$ docker build -t mshige1979/centos6 .
※こんな感じ