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

Warn user based on flags #19

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Warn user based on flags #19

merged 3 commits into from
Oct 15, 2024

Conversation

eunomie
Copy link
Owner

@eunomie eunomie commented Oct 15, 2024

For run command, if flags like volume, mount, privileged, ports, etc are set, ask confirmation to the user before to run.

Confirmation can be skipped by using --yes/-y flag or by setting accept-the-risk: true in the local configuration file.

Fixes #5

Like volume mount, pid, privileged, etc

Signed-off-by: Yves Brissaud <[email protected]>
In this case it will not prompt for user confirmation

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie eunomie merged commit 09899c9 into main Oct 15, 2024
3 checks passed
@eunomie eunomie deleted the warn-flags branch October 15, 2024 20:33
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

Successfully merging this pull request may close these issues.

Warn user before to run with certain flags
1 participant