kibana running on docker: how to save dashboard?

I am running kibana 5.2.1 from docker. I am using this image: FROM docker.elastic.co/kibana/kibana:5.2.1

The problem is if I remove the container the work done on kibana will be lost.
How can I save kibana dashboard on docker instance?

  • The volumes always mount to the /root/ not /crawler/ I specified
  • Huge files in Docker containers
  • Cannot access Google Container Registry from Google Compute Engine
  • How to set the locale inside a Docker container?
  • How to configure a Jenkinsfile to build docker image and push it to a private registry
  • Passenger+Nginx+Docker app setup
  • can I use docker volume? if yes which folder in the container store kibana data so I can map it to a local folder.

    Thanks!

  • I can not remove a directory in a docker container
  • Docker container stdout, stderr is being truncated. Is there a way to stop this?
  • DockerFile : Difference between ADD and COPY
  • Where does Elixir/erlang fit into the microservices approach? [closed]
  • How to exit “docker run” containers once the script those containers execute calls exit()
  • Running a Shell script from php
  • One Solution collect form web for “kibana running on docker: how to save dashboard?”

    Based on this question, it looks like it saves into elasticsearch, so you don’t need to mount a shared volume.

    Location of custom Kibana dashboards in ElasticSearch

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