Docker – Cassandra with Authentication

I want to setup a Cassandra container with configured authentication on Docker. Currently i’m using the official Cassandra Docker image, but it doesn’t seem to provide a option (via the ENV thingies) for enabling Auth Mode.

One possibility would be to setup an own repository, clone from the Cassandra Docker GitHub and modifiy this file so it also accepts the Auth related options, but this seems a bit to complex for my quite simple task. Does anybody know about a more simple solution or has any hints?

  • docker, nginx, django and how to serve static files
  • docker python custom module not found
  • How to set Puma workers, threads for Rails in Docker
  • Install cURL compiled with OpenSSL and zlib in Dockerfile
  • Docker API version with Docker login in CentOS 7
  • Vagrant docker provisioner command
  • Having issue setting up access token from policy in Vault
  • /sys on the host is becoming read-only once Docker is started
  • Don't see Django in Docker container
  • Docker development workflow with node.js
  • Unable to find Kubernetes apiserver's data in etcd3
  • no editor found (editor path = /usr/bin/editor) running visudo
  • One Solution collect form web for “Docker – Cassandra with Authentication”

    The only option that I can think of (other than making your own version of the image and updating that, as you suggested) is to provide your own cassandra.yaml in a bind mount. For example:

    $ docker run -v /path/to/config:/etc/cassandra

    Where /path/to/config is a directory containing your cassandra.yaml. Make any adjustments you like to the copy of cassandra.yaml on the host, including your auth changes. To ensure consistency in the configuration, be sure your copy of cassandra.yaml matches the version embedded in the docker image.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.