Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kapacitor.db inside kapacitor-docker-container #1125

Closed
sfwn opened this issue Jan 13, 2017 · 1 comment
Closed

kapacitor.db inside kapacitor-docker-container #1125

sfwn opened this issue Jan 13, 2017 · 1 comment

Comments

@sfwn
Copy link

sfwn commented Jan 13, 2017

kapacitor docker image version: 1.0-alpine
I run kapacitor through docker, volume /var/lib/kapacitor/:/var/lib/kapacitor/ for data persistence.
But after I stop & remove kapacitor-docker-container, recreate & run this container again, I lost all my tasks by typing # kapacitor list tasks inside container.

Inside container, I found default config file /etc/kapacitor/kapacitor.conf with content below:

data_dir = "/var/lib/kapacitor"

[replay]
  dir = "/var/lib/kapacitor/replay"

[storage]
  dir = "/var/lib/kapacitor/kapacitor.db"

But I found the real kapacitor.db is under the root dir: /kapacitor.db and when I run docker container with -v /var/lib/kapacitor/kapacitor.db:/kapacitor.db, the tasks persist.

I am confused with /kapacitor.conf and [storage] config in /etc/kapacitor/kapacitor.conf.

@nathanielc
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants