Skip to content

Cleaned up formatting/typesetting.#3163

Merged
thaJeztah merged 3 commits intodocker:masterfrom
KGB33:923_cleanup_docker_container_attach_man
Jul 5, 2021
Merged

Cleaned up formatting/typesetting.#3163
thaJeztah merged 3 commits intodocker:masterfrom
KGB33:923_cleanup_docker_container_attach_man

Conversation

@KGB33
Copy link
Copy Markdown
Contributor

@KGB33 KGB33 commented Jun 26, 2021

Changed backticks to bold/italics, removed angle brackets.

Updated cli/man/src/container/attach.md to match formatting specified in #923
By changing in-line code i.e. backticks, to bold (for literals) and italics (for variables).

Changed backticks to bold/italics, removed angle brackets.

Signed-off-by: Kelton Bassingthwaite <[email protected]>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 26, 2021

Codecov Report

Merging #3163 (384b59b) into master (8e08b72) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3163   +/-   ##
=======================================
  Coverage   57.09%   57.09%           
=======================================
  Files         299      299           
  Lines       18731    18731           
=======================================
  Hits        10695    10695           
  Misses       7166     7166           
  Partials      870      870           

KGB33 added 2 commits June 26, 2021 17:38
The previous example was out of date. I changed the distro & pined the
tag to help prevent the new example from becoming out of date too.

Signed-off-by: Kelton Bassingthwaite <[email protected]>
@KGB33
Copy link
Copy Markdown
Contributor Author

KGB33 commented Jun 27, 2021

I tested out the example and ran into an error:

ID=$(sudo docker run -d fedora /usr/bin/top -b)
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/bin/top": stat /usr/bin/top: no such file or directory: unknown.

Changing fedora to ubuntu solved the issue without changing it too much. I also pinned the ubuntu tag to help prevent another issue from happening in the future.

Copy link
Copy Markdown
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

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

Thanks @KGB33 for the contribution.
Could you explain why the formatting change is needed?
I can see that we have many similar man pages and they look good to me as they are. 🤔

Indeed, the fedora image does not contain top command, but eg. alpine does or as you mentioned the ubuntu image as well.

@KGB33
Copy link
Copy Markdown
Contributor Author

KGB33 commented Jun 28, 2021

I changed the formatting to match what was discribed in Issue #923.

This is a very small PR, If the formatting issues that #923 discribes is still the correct I'd be happy to update more of the man pages.

Copy link
Copy Markdown
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

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

Thank you @KGB33 for your contribution.
Thanks for the explanation, yes making small PR's make sense.
LGTM

Copy link
Copy Markdown
Member

@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!

@thaJeztah thaJeztah merged commit d7a311b into docker:master Jul 5, 2021
@thaJeztah thaJeztah added this to the 21.xx milestone Oct 7, 2021
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