-
Notifications
You must be signed in to change notification settings - Fork 61
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
Warn user when a command might corrupt dependent containers #88
Comments
Any opinion? |
Hmm, actually not too interested. It's something that Docker itself doesn't provide and I don't want Crane to be larger than necessary. Unless it becomes a pain point for a lot of people, I think I don't want this in Crane for now. Though in theory it sounds good :) |
Thanks for your opinion! To be honnest, I don't think it's fair to compare the feature set of Docker with Crane, even though we are trying to keep mapping as tight as possible. Docker focuses on containers, one by one, while Crane is IMHO a low-level orchestrator, which should take the pain out of the user who do not necessarily know the side effects of restarting a container. I know we had a similar discussion in #50, but ideally, I would like to see One other option would be to provide the ability to override CLI defaults via |
Would it make sense to require |
When
-a/--cascade-affected=none
, commands such aslift -r
,run -r
,stop
,pause
might affect containers that directly or indirectly depend on them: side effects can be silent stale data in case of volumes dependency or verbose crashes in case of linked/net dependency. In that case, it would be interesting to check targeted containers as if--cascade-affected=all
had been passed, and if it doesn't match the explicitly targeted one, show the missing containers in a warning, introducing the user to the flag as a way to safely run commands that alter the state of a container that others depend on.The text was updated successfully, but these errors were encountered: