francescou / docker-compose-ui

web interface for Docker Compose
http://francescou.github.io/docker-compose-ui
MIT License
1.54k stars 228 forks source link

Destroy or Reset service(s) #84

Open MichaelMackus opened 7 years ago

MichaelMackus commented 7 years ago

I think it would be useful to have a button to effectively "destroy" and/or "reset" a set of service(s). This could be done fairly easily by implementing an API endpoint for docker-compose down -v. Essentially, what this would do is bring the container(s) and volume(s) back to the original committed state (for example, to reset a corrupt database, or to recover admin capabilities when somebody has lost a password).

Of course we need some clear prompts & warnings for this button, since it would effectively remove data.

If there is some interest in this issue I could look into creating a PR for this, time permitting.

francescou commented 7 years ago

sure, it would be really useful. I think you could simply add this feature to the current docker-compose down implementation