Docker image for percona toolkit
1.7K
You can run all tools included in the percona-toolkit inside a Docker container. See Percona toolkit official site for more detail about percona toolkit.
# Install helper script to your computer.
sudo cp -a run.sh /usr/local/bin/docker-pt
# Run pt-* commands inside docker container.
cd /var/log/mysql
docker-pt pt-query-digest slow.log
If you want to use the local builded image instead of yuuki0xff/percona-toolkit, set docker image name to the DOCKER_PERCONA_TOOLKIT environment before execute the docker-pt command.
export DOCKER_PERCONA_TOOLKIT=local-percona-toolkit
Alternatively, you can use directly the docker commands.
docker run --rm -ti -v /var/log/mysql:/mnt:ro -w /mnt yuuki0xff/percona-toolkit pt-query-digest slow.log
Content type
Image
Digest
Size
89.2 MB
Last updated
almost 7 years ago
docker pull yuuki0xff/percona-toolkit