Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Prevent removal of Data Containers #23

Closed
MrMMorris opened this issue Jul 7, 2015 · 2 comments
Closed

Prevent removal of Data Containers #23

MrMMorris opened this issue Jul 7, 2015 · 2 comments

Comments

@MrMMorris
Copy link

Just noticed my hourly docker-gc cron was removing my data only containers 😱

Is the only way to prevent this to add them as an exception? Could docker-gc check for VolumesFrom?

@anroots
Copy link

anroots commented Aug 6, 2015

I failed to RTFM and so met this exact case. mariadb container was not removed as it was running, but bye-bye mariadb-data, which was a stopped, linked data-only container.

Adding a "exclude containers" feature similar to image exclusion would resolve this.

@rohansingh
Copy link
Contributor

Fixed by #38.

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

No branches or pull requests

3 participants