/
DirectorySecurity Advisories
Sign In
Directory
mysql-bitnami logo

mysql-bitnami

Last changed

Create your Free Account

Be the first to hear about exciting product updates, critical vulnerability alerts, compare alternative images, and more.

Sign Up
Versions
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for mysql-bitnami

MySQL is a widely used open-source relational database management system.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/mysql-bitnami:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

MySQL is an open-source relational database management system. Chainguard's mysql-bitnami container images are comparable to the bitnami/mysql image available on Docker Hub. However, the Chainguard image contain only the minimum set of tools and dependencies needed to function. This means it does not include things like a shell or a package manager.

The mysql-bitnami image is intended to be drop-in replacements for deployments that require Bitnami compatibility.

Deploying with Docker

The default MySQL port is 3306. To run a quick test MySQL server container with an empty root password, use the following command:

docker run -p 3306:3306 -e ALLOW_EMPTY_PASSWORD=1 docker pull cgr.dev/ORGANIZATION/mysql-bitnami:latest
(...)
mysql 08:54:56.59 INFO  ==> ** Starting MySQL setup **
mysql 08:54:56.61 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 08:54:56.61 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=1. For safety reasons, do not use this flag in a production environment.
mysql 08:54:56.62 INFO  ==> Initializing mysql database
(...)
mysql 08:55:55.15 INFO  ==> ** MySQL setup finished! **

mysql 08:55:55.19 INFO  ==> ** Starting MySQL **
2025-03-03T08:55:55.219396Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2025-03-03T08:55:55.442513Z 0 [System] [MY-010116] [Server] /opt/bitnami/mysql/bin/mysqld (mysqld 9.1.0) starting as process 1

After the server is up and running, you can connect to it using the mysql client. This is available for most Linux-based systems in a package called mysql-client, in case you don't have it installed yet.

To test the connection to the server as root and without a password, use the following command:

mysql -h127.0.0.1 -uroot -e 'select 1+1'
+-----+
| 1+1 |
+-----+
|   2 |
+-----+

Please note this only works because the server was initialized with the option ALLOW_EMPTY_PASSWORD, which should never be used on production environments.

Deploying with Helm

The MySQL (Bitnami) image can also be deployed using the helm charts. Such as:

helm install mysql oci://registry-1.docker.io/bitnamicharts/mysql --values values.yaml

Where values.yaml file should point to the Chainguard images as well as configuration for MySQL. Such as:

# use Chainguard mysql-bitnami image
image:
  registry: cgr.dev
  repository: ORGANIZATION/mysql-bitnami
  tag: latest

# configure authentication
auth:
  rootPassword: # ...
  # ...
global.security.allowInsecureImages: true

For more information, please refer to the change notification from Bitnami.

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:

  • Apache-2.0

  • Artistic-1.0-Perl

  • BSD-3-Clause

  • GCC-exception-3.1

  • GPL-1.0-or-later

  • GPL-2.0-only

  • GPL-2.0-or-later

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application

Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Products

Chainguard ContainersChainguard LibrariesChainguard VMs