Can we have percona tool kit docker image with existing MySQL DB which is running with Docker

Hello Team,

I have currently one MySQL / MariaDB is running with Docker image … i want to merge Percona tool-kit on existing MySQL /MariaDB Docker image ? is it possible ? if yes pls share the link or steps on this ?

Hello vasu1!
You can connect to your MySQL container by running:
docker exec -it <mysql-container> /bin/bash

From there, you can download the corresponding pt-toolkit package depending on your Docker base image (Ubuntu, Centos, Debian, etc.). Download Percona Toolkit

Additionally, you could modify your MySQL Dockerfile (assuming the base image is Debian based):

RUN apt install wget
RUN wget https://downloads.percona.com/downloads/percona-toolkit/3.3.1/binary/debian/stretch/x86_64/percona-toolkit_3.3.1-1.stretch_amd64.deb
RUN dpkg -i percona-toolkit_3.3.1-1.stretch_amd64.deb

The above will download and install percona-toolkit.
I hope this helps.
Best Regards.

Sure …Thanks alot sir .

1 Like