Not the answer you need?
Register and ask your own question!

How to use Percona Toolkit in a Docker container?

kevinhoangvnkevinhoangvn Current User Role Contributor
Hi,
I'm using Windows 10 and running MySQL 5.7.26 on this machine.
I download the docker image perconalab/percona-toolkit 3.2.0 from https://hub.docker.com/r/perconalab/percona-toolkit .
I try to run the container with the command as below.
docker container run --name PerconaToolkit -it perconalab/percona-toolkit /bin/bash
I can ping my machine from the container. But I cannot call pt-mysql-summary, it says "Cannot execute mysql".
pt-mysql-summary --host=192.168.16.6 --port=3306 --user=root --all-databases --ask-pass


Does anyone know how to run percona toolkit command to access to the remote MySQL from a docker container?
Thank you very much.
Regards,
Kevin

Comments

  • Ctrl4Ctrl4 Entrant Current User Role Supporter
    The code of pt-mysql-summary seems to be requiring mysql and mysqldump but I didn't find it in the docker image.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.