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: update start docs to add examples #4318

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

craig-osterhout
Copy link
Contributor

- What I did
There are no examples in the documentation for the docker start options.
I created examples in the documentation for every option.

- How I did it
I created examples based on examples from related commands. Then, verified that they worked.
For 3 options, I was unable to verify the results. No CLI errors were given using the example syntax. I added them assuming it was not a CLI syntax issue.

  • For --checkpoint, when I run docker start, it just hangs. On Linux with experimental enabled and criu installed.
  • For --checkpoint-dir, it gives a message that it's not supported. Already a moby issue opened regarding this.
  • For --detach-keys, I was unable to get it to work on Windows or Linux.

- How to verify it
Run the examples.

- Description for the changelog
Updated start docs to add examples

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2023

Codecov Report

Merging #4318 (22aff71) into master (5be2139) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4318   +/-   ##
=======================================
  Coverage   59.07%   59.07%           
=======================================
  Files         287      287           
  Lines       24752    24752           
=======================================
  Hits        14623    14623           
  Misses       9249     9249           
  Partials      880      880           

docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
Comment on lines +58 to +61
The `--checkpoint` option is an experimental feature, and should not be
considered stable. To read about experimental daemon options and how to enable
them, see
[Daemon configuration file](https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file).
Copy link
Member

Choose a reason for hiding this comment

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

Hm.. I thought we had a /go/ redirect for this one, but looks like that's only for experimental CLI features (but those are now enabled by default). https://github.com/docker/docs/blob/8d81583dcf89cf302420ca5f5c8a39b22a7e73fb/_redirects.yml#L106-L107

Perhaps we should repurpose that redirect for both cli (no longer needed) and engine features (and have a canonical section about enabling experimental features, etc).

@dvdksn perhaps you have ideas on that?

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
docs/reference/commandline/start.md Outdated Show resolved Hide resolved
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
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.

3 participants