Introducing our new CEO Don Johnson - Read More

bitnami/schema-registry

Verified Publisher

By VMware

Updated 2 days ago

Bitnami container image for Schema Registry

Image
API Management
Integration & Delivery
Message Queues
2

500K+

Bitnami package for Confluent Schema Registry

What is Confluent Schema Registry?

Confluent Schema Registry provides a RESTful interface by adding a serving layer for your metadata on top of Kafka. It expands Kafka enabling support for Apache Avro, JSON, and Protobuf schemas.

Overview of Confluent Schema Registry Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

docker run --name schema-registry bitnami/schema-registry:latest

Why use Bitnami Images?

  • Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
  • With Bitnami images the latest bug fixes and features are available as soon as possible.
  • Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
  • All our images are based on minideb -a minimalist Debian based container image that gives you a small base container image and the familiarity of a leading Linux distribution- or scratch -an explicitly empty image-.
  • All Bitnami images available in Docker Hub are signed with Notation. Check this post to know how to verify the integrity of the images.
  • Bitnami container images are released on a regular basis with the latest distribution packages available.

Looking to use Confluent Schema Registry in production? Try VMware Tanzu Application Catalog, the commercial edition of the Bitnami catalog.

Only latest stable branch maintained in the free Bitnami catalog

Starting December 10th 2024, only the latest stable branch of any container will receive updates in the free Bitnami catalog. To access up-to-date releases for all upstream-supported branches, consider upgrading to Bitnami Premium. Previous versions already released will not be deleted. They are still available to pull from DockerHub.

Please check the Bitnami Premium page in our partner Arrow Electronics for more information.

Supported tags and respective Dockerfile links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repo.

Get this image

The recommended way to get the Bitnami schema-registry Docker Image is to pull the prebuilt image from the Docker Hub Registry.

docker pull bitnami/schema-registry:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

docker pull bitnami/schema-registry:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .

Configuration

Environment variables

Customizable environment variables

NameDescriptionDefault Value
SCHEMA_REGISTRY_MOUNTED_CONF_DIRDirectory for including custom configuration files (that override the default generated ones)${SCHEMA_REGISTRY_VOLUME_DIR}/etc
SCHEMA_REGISTRY_KAFKA_BROKERSList of Kafka brokers to connect to.nil
SCHEMA_REGISTRY_ADVERTISED_HOSTNAMEAdvertised hostname in ZooKeeper.nil
SCHEMA_REGISTRY_KAFKA_KEYSTORE_PASSWORDPassword to access the keystore.nil
SCHEMA_REGISTRY_KAFKA_KEY_PASSWORDPassword to be able to used ssl secured kafka broker with SRnil
SCHEMA_REGISTRY_KAFKA_TRUSTSTORE_PASSWORDPassword to access the truststore.nil
SCHEMA_REGISTRY_KAFKA_SASL_USERSASL user to authenticate with Kafka.nil
SCHEMA_REGISTRY_KAFKA_SASL_PASSWORDSASL password to authenticate with Kafka.nil
SCHEMA_REGISTRY_LISTENERSComma-separated list of listeners that listen for API requests over either HTTP or HTTPS.nil
SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORDPassword to access the SSL keystore.nil
SCHEMA_REGISTRY_SSL_KEY_PASSWORDPassword to access the SSL key.nil
SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORDPassword to access the SSL truststore.nil
SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHMEndpoint identification algorithm to validate the server hostname using the server certificate.nil
SCHEMA_REGISTRY_CLIENT_AUTHENTICATIONClient authentication configuration. Valid options: none, requested, over required.nil
SCHEMA_REGISTRY_AVRO_COMPATIBILY_LEVELThe Avro compatibility type. Valid options: none, backward, backward_transitive, forward, forward_transitive, full, or full_transitivenil
SCHEMA_REGISTRY_DEBUGEnable Schema Registry debug logs. Valid options: true or falsenil

Read-only environment variables

NameDescriptionValue
SCHEMA_REGISTRY_BASE_DIRBase path for SCHEMA REGISTRY files.${BITNAMI_ROOT_DIR}/schema-registry
SCHEMA_REGISTRY_VOLUME_DIRSCHEMA REGISTRY directory for persisted files.${BITNAMI_VOLUME_DIR}/schema-registry
SCHEMA_REGISTRY_BIN_DIRSCHEMA REGISTRY certificates directory.${SCHEMA_REGISTRY_BASE_DIR}/bin
SCHEMA_REGISTRY_CERTS_DIRSCHEMA REGISTRY certificates directory.${SCHEMA_REGISTRY_BASE_DIR}/certs
SCHEMA_REGISTRY_CONF_DIRSCHEMA REGISTRY configuration directory.${SCHEMA_REGISTRY_BASE_DIR}/etc
SCHEMA_REGISTRY_DEFAULT_CONF_DIRSCHEMA REGISTRY configuration directory.${SCHEMA_REGISTRY_BASE_DIR}/etc.default
SCHEMA_REGISTRY_LOGS_DIRSCHEMA REGISTRY logs directory.${SCHEMA_REGISTRY_BASE_DIR}/logs
SCHEMA_REGISTRY_CONF_FILEMain SCHEMA REGISTRY configuration file.${SCHEMA_REGISTRY_CONF_DIR}/schema-registry/schema-registry.properties
SCHEMA_REGISTRY_DAEMON_USERUsers that will execute the SCHEMA REGISTRY Server process.schema-registry
SCHEMA_REGISTRY_DAEMON_GROUPGroup that will execute the SCHEMA REGISTRY Server process.schema-registry
SCHEMA_REGISTRY_DEFAULT_LISTENERSComma-separated list of listeners that listen for API requests over either HTTP or HTTPS.http://0.0.0.0:8081
SCHEMA_REGISTRY_DEFAULT_KAFKA_BROKERSList of Kafka brokers to connect to.PLAINTEXT://localhost:9092

When you start the Confluent Schema Registry image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. Please note that some variables are only considered when the container is started for the first time. If you want to add a new environment variable:

  • For docker-compose add the variable name and value under the application section in the docker-compose.yml file present in this repository:

    schema-registry:
      ...
      environment:
        - SCHEMA_REGISTRY_DEBUG=true
      ...
    
  • For manual execution add a --env option with each variable and value:

    $ docker run -d --name schema-registry -p 8081:8081 \
      --env SCHEMA_REGISTRY_DEBUG=true \
      --network schema-registry-tier \
      --volume /path/to/schema-registry-persistence:/bitnami \
      bitnami/schema-registry:latest
    

Kafka settings

Please check the configuration settings for the Kakfa service in the Kafka's README file.

Zookeeper settings

Please check the configuration settings for the Kakfa service in the Zookeeper's README file.

Security

The Schema Registry container can be setup to serve clients securely via TLS. To do so, specify the listener protocol as https in the SCHEMA_REGISTRY_LISTENERS environment variable (e.g. SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081,https://0.0.0.0:8082).

The keystore and trustore must be mounted in the /opt/bitnami/schema-registry/certs directory as ssl.keystore.jks and ssl.truststore.jks respectively. Currently, only JKS formats are supported. Note that the environment variables SCHEMA_REGISTRY_SSL_KEYSTORE_LOCATION or SCHEMA_REGISTRY_SSL_TRUSTSTORE_LOCATIONwill not override the expected location or file names. Please follow the instructions provided or you will get this error at startup: ERROR ==> In order to configure HTTPS access, you must mount your ssl.keystore.jks (and optionally the ssl.truststore.jks) to the /opt/bitnami/schema-registry/certs directory.

Here is a docker-compose.yml example that exposes a TLS listener on port 8082:

schema-registry:
  image: bitnami/schema-registry
  ports:
    - "8081:8081"
    - "8082:8082"
  depends_on:
    - kafka
  environment:
    - SCHEMA_REGISTRY_KAFKA_BROKERS=PLAINTEXT://kafka:9092
    - SCHEMA_REGISTRY_HOST_NAME=schema-registry
    - SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081,https://0.0.0.0:8082
    - SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD=keystore
    - SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD=keystore
    - SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM=none
    - SCHEMA_REGISTRY_CLIENT_AUTHENTICATION=REQUESTED
  volumes:
    - ./keystore.jks:/opt/bitnami/schema-registry/certs/keystore.jks:ro
    - ./truststore.jks:/opt/bitnami/schema-registry/certs/truststore.jks:ro

Using docker-compose.yaml

Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated Bitnami Helm chart.

If you detect any issue in the docker-compose.yaml file, feel free to report it or contribute with a fix by following our Contributing Guidelines.

Contributing

We'd love for you to contribute to this container. You can request new features by creating an issue or submitting a pull request with your contribution.

Issues

If you encountered a problem running this container, you can file an issue. For us to provide better support, be sure to fill the issue template.

License

Copyright © 2025 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Docker Pull Command

docker pull bitnami/schema-registry
Bitnami