私はPercona Xtradb Clusterをコンテナに入れています。コンテナ内のPercona Xtradbを回復する
コンテナを停止してから起動しました。
私がエラーを持っている:
2017-02-11T13:12:00.423566Z 0 [ERROR] Found 1 prepared transactions! It means that mysqld was not shut down properly last time and critical recovery information (last binlog or tc.log file) was manually deleted after a crash. You have to start mysqld with --tc-heuristic-recover switch to commit or rollback pending transactions.
2017-02-11T13:12:00.423739Z 0 [ERROR] Aborting
メッセージは、私はmysqld --tc-heuristic-recover
を必要とするが、MySQLは起動に失敗した後の容器が停止することを言います。
私の質問は以下のとおりです。
私はない
run
新しいコンテナが、start
既存のものにこの問題を解決することができますか?メインプロセス(
mysqld
)が停止した後でもDockerコンテナを実行する方法はありますか?
データがコンテナ(元ボリューム)の外にあるとすると、fixコマンドを使用して新しいコンテナを作成しないでください。 – Salem
いいえ、データはコンテナの内側にあります。 –
どちらの画像を使用していますか? – Salem