laradock x drupal
イシュー
- 記事があったので実行してみる
参考
起動エラー時のログの見方
docker-compose logs {service}
参考
phpmyadmin は、「http://192.168.99.100:8080」に接続してログインできる
- サーバ(デフォルト):192.168.99.100:3306
- ユーザ(デフォルト):default
- パスワード(デフォルト): secret
mysql インポート
mysql の Dockerfile 実行時にエラー
参考
- https://github.com/inversepath/usbarmory-debian-base_image/issues/9:tilte
- https://github.com/docker-library/postgres/issues/443:tilte
- laradockを使ってmysqlのデータベースを作成しても、なぜか作成されない - 気になったことをいろいろやってみる
- LaradockのプロジェクトコンテナとMySQLコンテナを接続する方法
- https://hub.docker.com/_/mysql/
- initialize
Initializing a fresh instance
When a container is started for the first time, a new database with the specified name will be created and initialized with the provided configuration variables. Furthermore, it will execute files with extensions .sh, .sql and .sql.gz that are found in /docker-entrypoint-initdb.d. Files will be executed in alphabetical order. You can easily populate your mysql services by mounting a SQL dump into that directory and provide custom images with contributed data. SQL files will be imported by default to the database specified by the MYSQL_DATABASE variable.
- mysql user & password won't change no matter what I do · Issue #1260 · laradock/laradock · GitHub
- Laradockを使ったlaravel開発環境 | Qiita | まとめたくんv2
/docker-entrypoint-initdb.d 内のsqlが動作しない理由を考える
- /docker-entrypoint-initdb.d 内のsql を実行するのは、docker-entrypoint.sh だが、これがコンテナ内のどこにあるのかを把握する
- 仮説:docker-entrypoint.sh が実行されるのは、初回の docker-component up の時だけではないか?
- docker-entrypoint.shの実行は、Dockerfile の ENTRYPOINT で行われるが、ENTRYPOINTの意味は?
- Dockerfileを極めて、Dockerマスターになろう!
- [docker] CMD とENTRYPOINT の違いを試してみた
- ENTRYPOINTを使うとイメージ読み込み後の、Dockerfile によるCMD上書きを許可しない。(必ずdocker-entrypoint.sh が実行される)
- Dockerfile ENTRYPOINTとCMDについて