Dockerのコンテナでapacheを動かすまでのメモ 環境 Mac OS X 10.8 Ubuntu 12.04 (Vagrant) Ubuntu 12.04 (Docker) ファイル構成 vagrant$ find . . ./Dockerfile ./htdocs ./htdocs/index.html vagrant$ cat htdocs/index.html <!DOCTYPE html> <html> <body> <h1>Hello Docker!</h1> </body> </html> Dockerfile ubuntu:12.04ベース aptでapache2をインストール ホストのhtdocsディレクトリの中身をコンテナの/var/www配下に転送 80番ポートをexpose コンテナ起動時にapacheを起動 FROM ubuntu:12.04 MAINTAIN