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

Remove container after run. #454

Conversation

Constantin07
Copy link
Contributor

@Constantin07 Constantin07 commented Nov 17, 2020

Just updating README.md.

Added --rm flag to remove container after run as probably not required for dangling ones to be left (no need to clean up afterwards).

Also, -it flag is not necessary for running checks because interactive shell is not used.

@@ -40,7 +40,7 @@ Some examples are:
binaries.

```sh
docker run -it --net host --pid host --userns host --cap-add audit_control \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the -it was added to allow stopping the container with CTRL-C (not sure, but it's common)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tested, it can be stopped even without -it using CTRL-C

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks! saw your PR in my notifications, and thought it was worth mentioning; thanks for checking!

@konstruktoid
Copy link
Collaborator

Closes #452

@konstruktoid konstruktoid merged commit ca0db88 into docker:master Nov 18, 2020
@konstruktoid
Copy link
Collaborator

Thanks @Constantin07 for the PR!

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.

None yet

3 participants