laradock x drupal


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



docker-compose logs {service}


phpmyadmin は、「」に接続してログインできる

  • サーバ(デフォルト):
  • ユーザ(デフォルト):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が動作しない理由を考える