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?

  • Why does my automated build run so slowly inside a Docker container?
  • BigTable docker image startup issue: util.NativeCodeLoader: Unable to load native-hadoop library for your platform
  • WordPress, Docker and nginx
  • Docker private registry | TLS certificate issue
  • Docker on Ubuntu 15.10 32 bit (OS and Processor)
  • Running docker chrome node in EC2 Does Not Download Files
  • kube-dns can not resolve 'kubernetes.default.svc.cluster.local'
  • Can I create a volume on my windows hyperv docker installation
  • Why the pods returns Error or ExitCode:0 even they run successfully?
  • Docker compose, running containers in net:host
  • Connecting to localhost mysql server from inside docker container on macOS
  • Upgrade docker container to latest image
  • 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 docker-entrypoint.sh, 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.