docs icon indicating copy to clipboard operation
docs copied to clipboard

Wrong command for docker run in the 'Allocate a pseudo-TTY (-t, --tty)' section

Open mgross2 opened this issue 1 year ago • 2 comments

Is this a docs issue?

  • [X] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

In this section, you describe how the behavior of docker run changes, if the -t is added to the -i option. However, the example command in the second code block does not contain the -t flag

The second bash command reads exactly as the first one:

$docker run -i debian passwd root

Location

https://docs.docker.com/engine/reference/commandline/container_run/#tty

Suggestion

The second bash command should read $docker run -ti debian passwd root

mgross2 avatar Feb 02 '24 01:02 mgross2

Hi if this issue is still open i would like to work on it

ankitbhadoriya avatar Feb 04 '24 06:02 ankitbhadoriya

Thanks for reporting this issue, looks like I've made a typo indeed!

@ankitbhadoriya if you'd like to work on this issue, by my guest! Note that this content lives in a different repository, and is only vendored in docker/docs. To fix the issue, the following file needs to be updated: https://github.com/docker/cli/blob/master/docs/reference/commandline/container_run.md?plain=1#L1003

dvdksn avatar Feb 04 '24 21:02 dvdksn

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robot[bot] avatar Apr 28 '24 03:04 docker-robot[bot]