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

**URL:** <https://forums.percona.com/t/can-we-have-percona-tool-kit-docker-image-with-existing-mysql-db-which-is-running-with-docker/11029>\
**Category:** Percona Toolkit\
**Tags:** percona\
**Created:** [June 25, 2021, 3:28am UTC](https://forums.percona.com/t/can-we-have-percona-tool-kit-docker-image-with-existing-mysql-db-which-is-running-with-docker/11029 "2021-06-25T03:28:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasu1](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vasu1/32/3519_2.png) [@vasu1](https://forums.percona.com/u/vasu1)\
**Post date:** [June 25, 2021, 3:28am UTC](https://forums.percona.com/t/can-we-have-percona-tool-kit-docker-image-with-existing-mysql-db-which-is-running-with-docker/11029/1 "2021-06-25T03:28:10Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![mateo\_fleitas](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mateo_fleitas/32/198_2.png) [@mateo\_fleitas](https://forums.percona.com/u/mateo_fleitas)\
**Post date:** [July 5, 2021, 8:46pm UTC](https://forums.percona.com/t/can-we-have-percona-tool-kit-docker-image-with-existing-mysql-db-which-is-running-with-docker/11029/2 "2021-07-05T20:46:16Z")

</div>

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](https://www.percona.com/downloads/percona-toolkit/LATEST/)

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![vasu1](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vasu1/32/3519_2.png) [@vasu1](https://forums.percona.com/u/vasu1)\
**Post date:** [July 6, 2021, 3:26am UTC](https://forums.percona.com/t/can-we-have-percona-tool-kit-docker-image-with-existing-mysql-db-which-is-running-with-docker/11029/3 "2021-07-06T03:26:05Z")

</div>

Sure …Thanks alot sir .
