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

docs/reference: stop, restart: add flag descriptions #5484

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

thaJeztah
Copy link
Member

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.03%. Comparing base (daabb15) to head (6075303).
Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5484       +/-   ##
===========================================
+ Coverage   43.17%   60.03%   +16.86%     
===========================================
  Files           6      345      +339     
  Lines         227    23434    +23207     
===========================================
+ Hits           98    14068    +13970     
- Misses        123     8391     +8268     
- Partials        6      975      +969     

@thaJeztah
Copy link
Member Author

/cc @dvdksn ptal 🤗

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Comment on lines +52 to +55
The default timeout can be specified using the [`--stop-timeout`](https://docs.docker.com/reference/cli/docker/container/run/#stop-timeout)
option when creating the container. If no default is configured for the container,
the Daemon determines the default, and is 10 seconds for Linux containers, and
30 seconds for Windows containers.
Copy link
Member Author

Choose a reason for hiding this comment

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

TBH; not super happy with these sections; we should probably have a look at better descriptions for these (we have this in some other places as well).

It's a bit complicated to explain these bits

  • container inherits default from image (which can be set through dockerfile)
  • or overridden at runtime (docker create / docker run)
  • or overridden when invoking these commands
  • or otherwise use the daemon default (which can differ per platform)

Some of that could become more transparent if we had better separation between "desired config" and "actual config" (in which case we could make defaults visible in inspect output), but we don't have that.

Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah removed the request for review from Benehiko September 27, 2024 10:19
Copy link
Member

@Benehiko Benehiko left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit b1ae218 into docker:master Sep 27, 2024
89 checks passed
@thaJeztah thaJeztah deleted the stop_restart_flag_descriptions branch September 27, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants