MySQL8.0 をインストールした Docker コンテナを作ろうと、Dockerfile に以下のように記載したところエラーが出ました。
RUN yum -y localinstall https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm RUN yum -y install mysql-community-server
以前は、上記の設定で動いていたのですが、新たにコンテナを作ろうとしたところ、以下のようなエラーが。
No match for argument: mysql-community-server Error: Unable to find a match
解決方法としましては、mysql-community-server から mysql-server に変更することで、コンテナの起動に成功しました。
RUN yum -y install mysql-community-server ↓ RUN yum -y install mysql-server
コメント