From a5b82e9f87d73addc5d007b9b9ef5f8828febe32 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 29 Feb 2024 10:59:08 +0100 Subject: [PATCH 1/2] docs: fix typo in tty example Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- docs/reference/commandline/container_run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/commandline/container_run.md b/docs/reference/commandline/container_run.md index a15ace244e..706d43b57b 100644 --- a/docs/reference/commandline/container_run.md +++ b/docs/reference/commandline/container_run.md @@ -1000,7 +1000,7 @@ text. However, if you try the same thing but also adding the `-t` flag, the password is hidden: ```console -$ docker run -i debian passwd root +$ docker run -it debian passwd root New password: Retype new password: passwd: password updated successfully From d51ba41791e705716384e31927d841309ca72c2c Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:38:53 +0100 Subject: [PATCH 2/2] docs: prefer -it over -ti Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- docs/reference/run.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/run.md b/docs/reference/run.md index bad35ccf42..ab4a4afceb 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -767,7 +767,7 @@ For example, this command creates a container and limits the read rate to `1000` IO per second from `/dev/sda`: ```console -$ docker run -ti --device-read-iops /dev/sda:1000 ubuntu +$ docker run -it --device-read-iops /dev/sda:1000 ubuntu ``` The `--device-write-iops` flag limits write rate (IO per second) to a device. @@ -775,7 +775,7 @@ For example, this command creates a container and limits the write rate to `1000` IO per second to `/dev/sda`: ```console -$ docker run -ti --device-write-iops /dev/sda:1000 ubuntu +$ docker run -it --device-write-iops /dev/sda:1000 ubuntu ``` Both flags take limits in the `:` format. Both read and