Kong Api's and Plugins are getting removed after kong docker container start and stop

I am trying with Kong. Iam running this on AWS. Whenever I stop the server and start it every entry in the APIs and Plugins will go. so after each and evry start and stop I have to re-add the values for api and plugins. Can any one tell me how can I retain the data ?

docker run -d –name kong-database -p 9042:9042 cassandra:2.2 then I ran the image for kong
docker run -d –name kong –link kong-database:kong-database
-e KONG_DATABASE=cassandra” -e “KONG_CASSANDRA_CONTACT_POINTS=kong-database”
-e “KONG_PG_HOST=kong-database” -p 8000:8000 -p 8443:8443 -p 8001:8001
-p 7946:7946 -p 7946:7946/udp kong

  • Docker not mapping port using gunicorn
  • How to sync code between container and host using docker-compose?
  • How to set password to a docker container
  • Access rest api endpoint docker
  • How to handle differences in Dockerfile for dev/prod
  • Docker environment variable and Django database setup
  • please help me on this.

  • How to use docker with mongo to achieve replication and with opening authentication
  • PID mapping between docker and host
  • creating a docker image of an app inside a running container
  • How to connect to a docker container from the outside world
  • Docker Build from Source - How to Run?
  • How to allow websockets to specific subdomain behind an nginx proxy?
  • One Solution collect form web for “Kong Api's and Plugins are getting removed after kong docker container start and stop”

    I found one solution. the steps which I did
    1. take the snapshot of the cassandra keyspace using nodetool.
    2. copy the snapshot of the tables which you want to restore
    3. copy the snapshot to the tables of destination server
    4. refresh the tables using nodetool
    5. refresh the kong url , you can see the data updated there.

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