新しいプロジェクトでは、過去に同じような構成をDockerで作っていればDockerfileを流用しています。 さて、 今回は、最新のMySQLイメージを使う際に発生する問題について記載していきます。 イントロダクション この記事で得られること MySQLの古いバージョンから、8.0系に移行した際に生じる問題についてわかる。 久しぶりにMySQLのイメージを使ったらエラーが起きた時の対処方法がわかる 環境 ツール 種類 バージョン Docker 18.03.1 ライブラリ 種類 バージョン laravel 5.5 状況 Laravelでアプリケーションを作っています。 Dockerで使うイメージは、ApacheとMySQLそれぞれの最新イメージを使用しています。 MySQLのDockerfileは下記です。 FROM mysql COPY ./docker-entrypoint-initd