と思わないために環境構築時や開発時のはまり所やひっかかった所を共有します。 Vagrant+Dockerで以下の環境を構築して開発を行っています。 開発環境 ホスト機(windows)<->Vagrant(centos)<->Docker(centos) ステージング・検証環境 centos<->Docker(centos) 環境構築時 Dockerfileの作成 Dockerfileに下記のような記述をして、mysql起動後に初期データベースを作ろうとしても失敗します。 RUN service mysql start RUN mysql -uhoge -phogehoge -e"CREATE DATABASE hoge CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'" cdなどでカレントディレクトリを移動する場合も同様です。 WORKDIRと