Deploy a cluster on Docker

    1. Initialize cluster metadata
    2. Deploy a BookKeeper cluster

    To run Pulsar on Docker, you need to create a container for each Pulsar component: ZooKeeper, BookKeeper and broker. You can pull the images of ZooKeeper and BookKeeper separately on Docker Hub, and pull a for the broker. You can also pull only one Pulsar image and create three containers with this image. This tutorial takes the second option as an example.

    Create containers for ZooKeeper, BookKeeper and broker. In this example, they are named as , bookkeeper and respectively. You can name them as you want with the --name flag. By default, the container names are created randomly.

    Connect the containers of ZooKeeper, BookKeeper and broker to the network with the following commands.

    For detailed information about how to deploy ZooKeeper cluster, BookKeeper cluster, brokers, see .