Skip to content

docs: use more tables in run reference and minor fixups - #11239

Merged
jessfraz merged 1 commit into
moby:masterfrom
thaJeztah:docs-tables-in-run-reference
Mar 17, 2015
Merged

jessfraz merged 1 commit into
moby:masterfrom
thaJeztah:docs-tables-in-run-reference

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

_NOTE: this also requires the CSS in docs/base to be fixed (#11230)_

This adds two more tables to the run reference documentation.

  • the list of 'modes' for Network settings is now a table.
  • the "note" for --net="host" was moved from the list to the detailed
    description.
  • the 'options' for "Runtime constraints on CPU and memory" are
    now a table
  • slightly re-worded the description for "memory" options, e.g.
    "It is not allowed..." was rewriten to "The container is not allowed..."
  • fix example in "Runtime privilege, Linux capabilities, and LXC configuration"
    being indented twice
  • slightly reduced indenting in some usage output to be better readable.
  • add the "flag" name to the headings for "IPC settings" and "PID settings" to be more consistent with other headings

@thaJeztah

Copy link
Copy Markdown
Member Author

I'm planning on adding tables for the "Security configuration", PID Settings and IPC Settings sections.

For PID and IPC settings, I wasn't sure what to call the default, and how to best describe it ("the container uses its own namespace"?).

@SvenDowideit

Copy link
Copy Markdown
Contributor

I presume I missed the PR where you noted why we can't use the markdown table markup for these kinds of 2 column tables.

so LGTM - @docker/docs-owners

@thaJeztah

Copy link
Copy Markdown
Member Author

@SvenDowideit yes, I'd prefered to use MD tables (they are easier to read in plain text); The problem I had with them was that wrapping inside table cells doesn't work, so many tables would be waaaaay over the 80-chars wrap. Also decided to keep consistent with the other tables.

Open to suggestions though!

@moxiegirl

Copy link
Copy Markdown
Contributor

LGTM

@thaJeztah

Copy link
Copy Markdown
Member Author

Think this needs a rebase, because #11230 was merged; will do so tonight

This adds two more tables to the run reference documentation.

- the list of 'modes' for Network settings is now a table.
- the "note" for `--net="host"` was moved from the list to the detailed
  description.
- the 'options' for "Runtime constraints on CPU and memory" are
  now a table
- slightly re-worded the description for "memory" options, e.g.
  "It is not allowed..." was rewriten to "The *container* is not allowed..."
- fix example in "Runtime privilege, Linux capabilities, and LXC configuration"
  being indented twice
- slightly reduced indenting in some `usage` output to be better readable.
- fixes a typo `/ets/hosts` -> `/etc/hosts`

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
thaJeztah force-pushed the docs-tables-in-run-reference branch from f875557 to 37d856d Compare March 11, 2015 22:43
@thaJeztah

Copy link
Copy Markdown
Member Author

Rebased. Also fixed a typo and corrected tabs -> 4 spaces (introduced in 11230)

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Mar 17, 2015
docs: use more tables in run reference and minor fixups
@jessfraz
jessfraz merged commit da24ba4 into moby:master Mar 17, 2015
@thaJeztah
thaJeztah deleted the docs-tables-in-run-reference branch March 17, 2015 07:20
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.

6 participants