Skip to content

Add "Recommended Runtime Settings" to Docker description#1821

Merged
yosifkit merged 1 commit intodocker-library:masterfrom
infosiftr:docker-recommended-runtime-settings
Oct 27, 2020
Merged

Add "Recommended Runtime Settings" to Docker description#1821
yosifkit merged 1 commit intodocker-library:masterfrom
infosiftr:docker-recommended-runtime-settings

Conversation

@tianon
Copy link
Copy Markdown
Member

@tianon tianon commented Oct 23, 2020

This is intended as an alternative approach to docker-library/docker#258.

cc @thaJeztah @cpuguy83 @AkihiroSuda

Copy link
Copy Markdown
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

I would maybe preface the recommendation with some caveats:

  1. By default, it will indeed inherit these values from the daemon
  2. ... except in the case of ulimits if there are default values set on the daemon config (--default-ulimit nofile:999999)
  3. The recommendations are how we recommend to run docker in production, and may not be needed for short-lived or non-critical instances.

@thaJeztah
Copy link
Copy Markdown
Contributor

Thanks Tianon! I Forgot about opening a follow up PR 😓

Also a bit on the fence on calling it "recommended", as it really would depend on the use case 🤔

Setting OOM adjust to the same value as the daemon itself would likely not be great as it would then increase the chance that dockerd is killed before the dind container is killed.

I guess some more context to allow the user to make the right decision for their use would be good, but I know there's limited space for documentation on Hub 😔

@tianon tianon force-pushed the docker-recommended-runtime-settings branch from 5dcd7c1 to 1aa9c4e Compare October 26, 2020 19:23
@tianon
Copy link
Copy Markdown
Member Author

tianon commented Oct 26, 2020

Copy link
Copy Markdown
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!!

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.

4 participants