How do I run Flower using Docker?

A frequently asked question we get is:

How do I run Flower using Docker? :whale:

1 Like

:information_source: Currently, Flower only provides an image for the Flower SuperLink; a SuperNode image will be available soon.

To run the Flower SuperLink using Docker, use the command:

$ docker run --rm -p 9091:9091 -p 9092:9092 \
    flwr/superlink:1.8.0 --insecure

This command pulls the Docker image with tag 1.8.0 from Docker Hub. It maps ports 9091/9092 of the host to 9091/9092 of the container and enables insecure communication via the --insecure flag.

:information_source: Note that the --insecure flag should only be used for testing purposes and SSL should be enabled in production.

For more information and details about other flags and configuration options, refer to the Flower documentation.