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?

  • Use Docker with my Ubuntu 14.04 (web access)
  • docker-compose with docker-swarm under docker-machine not mounting volumes
  • Updating a container created from a custom dockerfile
  • python fabric run awk command return a KeyError: 'print $1'
  • How do I load a csv from my local machine (mac) to Spark-Neo4j docker?
  • exposing container ports for django application
  • How to cache node_modules on Docker build?
  • Can't reach Asp.Net Core inside Docker
  • Django models foreign key not recognizing 'QueryString' BaseObject
  • Executing Docker commands with Gradle
  • Docker Maven plugin: how to specify shm size when running a container
  • How to write a Dockerfile which I can start a service and run a shell and also accept arguments for the shell?
  • 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.