Container can be started using following command:
docker run -d -p 5672:5672 -p 8080:8080 --name qpid <IMAGE_NAME>
or
podman run -d -p 5672:5672 -p 8080:8080 -v qpid_volume:/qpid-broker-j/work:Z --name qpid <IMAGE_NAME>
There are two ports exposed: 5672 for AMQP connections and 8080 for HTTP connections.
There are following environment variables available when running the container:
Table 12.1. Environment Variables
Environment Variable | Description |
---|---|
JAVA_GC | JVM Garbage Collector parameters, default value "-XX:+UseG1GC" |
JAVA_MEM | JVM memory parameters, default value "-Xmx300m -XX:MaxDirectMemorySize=200m" |
JAVA_OPTS | Further JVM parameters, default value is an empty string |
The image will use the directory /qpid-broker-j/work to hold the configuration and the data of the running broker. To persist the broker configuration and the data outside the container, start container with the volume mapping:
docker run -d -p 5672:5672 -p 8080:8080 -v <BROKER_DIRECTOR_ON_HOST>:/qpid-broker-j/work --name qpid <IMAGE_NAME>
or
podman run -d -p 5672:5672 -p 8080:8080 -v <BROKER_DIRECTOR_ON_HOST>:/qpid-broker-j/work:Z --name qpid <IMAGE_NAME>
Apache Qpid, Messaging built on AMQP; Copyright © 2015 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners