-
Notifications
You must be signed in to change notification settings - Fork 57
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
spine directory and crontab empty after docker-compose down and restoring #61
Comments
Hey Kevin, thanks for the report and that does not sound expected. Can you tell me what version of It's as if the compose down command is deleting the container instead of just turning it off. If you still have the environment, after you |
I think it's normal that
Creating container:
Running docker-compose down:
Containers fully removed:
|
Ah re-reading on those commands this is actually expected. docker-compose down
If your intent is to destroy the environment and on From
To (have not tested yet)
If the intent (I assume this is what you want) to simply turn off the containers and retain its information, then:
is the command you would want to use. |
In the meantime, I can add some extra checks to the |
I actually tested earlier using these volumes and it works, but not sure if it's a good idea to be saving the entire /etc directory as a persistent volume.
Awesome, that would be great if the start.sh script can do that. It would save having to use these extra volumes. Thanks for the help with this! |
This has been updated in the most recent PR. Unfortunately, I did need to add a new volume for Statically assigning the built-in Spine version could cause version mismatches otherwise. |
Using the cacti_single_install.yml docker-compose example. When bringing down/removing the containers with
docker-compose down
and restoring withdocker-compose up -d
the /spine/ directory is empty and original contents of the /etc/crontab is lost. I don't see any errors in logs so I wont post unless you need it.Example:
After creating new container with persistent volumes for /cacti and /var/lib/mysql
Before snapshot: /spine directory and /etc/crontab has content.
Down/remove the containers & restore
The /spine directory and /etc/crontab is empty.
Here is the docker-compose.yml file I used for this test:
Thanks,
Kevin
The text was updated successfully, but these errors were encountered: