Creating a cassandra docker image with initialized KEYSPACE and schema

I am trying to create a Cassandra docker image using docker-compos

I am finding it hard creating containers with configured KEYSPACE and schema without having to run a separate docker exec command on the running container.

  • Docker container restart without data loss
  • nomad not starting Docker jobs
  • Recommended way to run a Docker Compose stack in production?
  • example marathon json deployment file when using glusterfs volume driver
  • How to get and present docker states inside html page by javascript?
  • logspout write: connection refused
  • Does anyone have an example off how to do this using docker file or docker-compose?

  • How to setup nginx and django with docker-compose?
  • How to open Ubuntu GUI inside docker image
  • docker container started in Detached mode stopped after process execution
  • Automated Build - image without source files
  • Committing a running docker container (with pause), then run it, what's the images internal state
  • Testing a dockerized Ruby on Rails app with MySQL on CircleCI
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.