Docker installs percona and solves the crash problem

This article is based on the system environment of CentOS 7.3, installs percona, and fixes the crash issue

  • CentOS 7.3

One, install percona mirror

(1) Pull the percona image

docker pull percona:5.7.23

(2) Create and configure percona container

docker create -p 3306:3306 --name percona
-v /data/mysql-data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=123456
percona:5.7.23

(3) Start the percona container

docker start percona

2. Solve the crash problem of starting percona container

(1) Grant read and write permissions to the host directory

chmod -R 777 /data/mysql-data

(2) Start the percona container

docker start percona

I like to learn new and better ways of doing things when working on a scale, and feel free to ask questions and make suggestions.
Also, check out another story on this.
Thanks for reading this.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pankaj kushwaha

Database/System Administrator | DevOPS | Cloud Specialist | DevOPS