laradock x drupal

イシュー

  • 記事があったので実行してみる

参考

起動エラー時のログの見方

docker-compose logs {service}

参考

phpmyadmin は、「http://192.168.99.100:8080」に接続してログインできる

  • サーバ(デフォルト):192.168.99.100:3306
  • ユーザ(デフォルト):default
  • パスワード(デフォルト): secret

mysql インポート

mysql の Dockerfile 実行時にエラー

  • gpg: keyserver receive failed: Cannot assign requested address

参考

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.

/docker-entrypoint-initdb.d 内のsqlが動作しない理由を考える