Where the open source database community meets: Use code PERCONA75 and secure your spot for Percona Live.  Register

Experimental Percona Docker images for Percona Server

February 2, 2016
Author
Vadim Tkachenko
Share this Post:

Percona DockerDocker is incredibly popular tool for deploying software, so we decided to provide a Percona Docker image for both Percona Server MySQL and Percona Server for MongoDB.

We want to create an easy way to try our products.

There are actually some images available from https://hub.docker.com/_/percona/, but these images are provided by Docker itself, not from Percona.

In our images, we provide all the varieties of storage engines available in Percona Server (MySQL/MongoDB).

Our images are available from https://hub.docker.com/r/percona/.

The simplest way to get going is to run the following:

for Percona Server/MySQL, and:

for Percona Server/MongoDB.

It is very easy to try the different storage engines that comes with Percona Server for MongoDB. For example, to use RocksDB, run:

or PerconaFT:

We are looking for any feedback you’d like to provide: if this is useful, and what improvements we could make.

0 0 votes
Article Rating
Subscribe
Notify of
guest

19 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
laby
laby
10 years ago

What is the difference between your image and docker’s image ?

Giuseppe Maxia
10 years ago

Thanks for publishing these images.
I have a few questions:
1) Why is the percona-server image almost twice the size of mysql-server?
2) The description on docker hub says that TokuDB is already enabled, but it does not show up in “show engines.” What should users do to enable it?
3) Recently the MySQL team has introduced a change to allow passing a file containing a password rather than the password instead. Could you do the same?
4) Where is the source code of the image?
5) Is a 5.7 version of the image coming along?

Thanks

Giuseppe

Giuseppe Maxia
10 years ago

Vadim,
Thanks for your quick answer.
The size is important as it determines the speed of download and deployment.

Where should I report a bug? Enabling TokuDB made the container fail.

Giuseppe Maxia
10 years ago

Experimental bug report:

After running
time docker run –name mybox -e MYSQL_ROOT_PASSWORD=secret -d -e INIT_TOKUDB=1 percona/percona-server

the container fails. At the end of ‘docker logs mybox’, I get:

Version: ‘5.6.28-76.1’ socket: ‘/var/lib/mysql/mysql.sock’ port: 0 Percona Server (GPL), Release 76.1, Revision 5759e76
Warning: Unable to load ‘/usr/share/zoneinfo/iso3166.tab’ as time zone. Skipping it.
Warning: Unable to load ‘/usr/share/zoneinfo/zone.tab’ as time zone. Skipping it.
which: no sestatus in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
Checking if Percona Server is running with jemalloc enabled…
WARNING: The file /proc/64/environ is not readable so impossible to check LD_PRELOAD for jemalloc.
Possibly running inside container so assuming jemalloc is preloaded and continuing…
If there will be an error during plugin installation try to restart mysql service and run this script again.

Checking transparent huge pages status on the system…
INFO: Transparent huge pages are enabled (should be disabled).

Checking if thp-setting=never option is already set in config file…
INFO: Option thp-setting=never is not set in the config file.
(needed only if THP is not disabled permanently on the system)

Checking TokuDB engine plugin status…
INFO: TokuDB engine plugin is not installed.

Disabling transparent huge pages for the current session…
/usr/bin/ps_tokudb_admin: line 348: /sys/kernel/mm/transparent_hugepage/defrag: Read-only file system
/usr/bin/ps_tokudb_admin: line 351: /sys/kernel/mm/transparent_hugepage/enabled: Read-only file system
ERROR: Failed to disable transparent huge pages for this session.

Giuseppe Maxia
10 years ago

Vadim,
you can fix this issue at run time with the following commands, without touching the host environment:

echo never > never.txt
docker run
–name mybox
-e MYSQL_ROOT_PASSWORD=secret -d
-e INIT_TOKUDB=1
-v $PWD/never.txt:/sys/kernel/mm/transparent_hugepage/defrag
-v $PWD/never.txt:/sys/kernel/mm/transparent_hugepage/enabled
percona/percona-server

This way, the container will see your local file instead of the corresponding one from the host.

Jeff Palmer
Jeff Palmer
10 years ago

Vadim, This is less of a percona specific thing, and more of a docker/docker hub thing, but I’d love to see you guys using automated docker hub builds so everytime you checkin to git, a new image is created. Additionally, it’d be kind of great if you could make the CentOS image a dependancy, so that when they update their image (generally with security enhancements) the percona image also gets updated automatically.

Oleg Dolgarev
10 years ago

Hello Vadim,
I tried to start mongo with PerconaFT/RocksDB engines:
docker run –name psmdbperconaft -d percona/percona-server-mongodb:latest –storageEngine=PerconaFT
But container does not work. Without –storageEngine option it works well.
Why?

shantanu oak
9 years ago

TokuDB does not start with this command…

docker run -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -e INIT_TOKUDB=1 -d percona/percona-server

Log is available here…

https://gist.github.com/shantanuo/35832764d58f3b1dfa7b035c248c2bf6

Srinivas
Srinivas
9 years ago

Is there any additional benefit of using your docker image compared to standard docker version of Percona (from https://hub.docker.com/_/percona/) ? Because standard mysqld options support specification of storage engine

Jy
Jy
9 years ago
Reply to  Srinivas

Hello Vadim,

we require Galera cluster setup using percona5.6 version , please let me know which image I will get

Far
Enough.

Said no pioneer ever.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
© 2026 Percona All Rights Reserved