Skip to content

Commit 4515c6b

Browse files
authored
Merge pull request #27794 from MayorFaj/docs-remove-unnecessary-tty-27605
fix: remove unnecessary -t flag from podman run commands in docs
2 parents ac91395 + eaf4d4e commit 4515c6b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/source/markdown/podman-run.1.md.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ flag. For example, an httpd port 80 can be mapped to the host port 8080 using th
611611
following:
612612

613613
```
614-
$ podman run -p 8080:80 -d -i -t fedora/httpd
614+
$ podman run -p 8080:80 -d fedora/httpd
615615
```
616616

617617
### Mounting External Volumes

docs/tutorials/basic_networking.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ outside the host as both rootful and rootless. It will also show how an outside
122122
client can connect to the container.
123123

124124
```
125-
(rootful) $ sudo podman run -dt --name webserver -p 8080:80 quay.io/libpod/banner
125+
(rootful) $ sudo podman run -d --name webserver -p 8080:80 quay.io/libpod/banner
126126
00f3440c7576aae2d5b193c40513c29c7964e96bf797cf0cc352c2b68ccbe66a
127127
```
128128

129129
Now run the container.
130130
```
131-
$ podman run -dt --name webserver --network podman1 -p 8081:80 quay.io/libpod/banner
131+
$ podman run -d --name webserver --network podman1 -p 8081:80 quay.io/libpod/banner
132132
269fd0d6b2c8ed60f2ca41d7beceec2471d72fb9a33aa8ca45b81dc9a0abbb12
133133
```
134134
Note in the above run command, the container’s port 80 (where the Nginx server is
@@ -216,7 +216,7 @@ Note that depending on the distribution, the binary location may differ.
216216

217217
Now run the container and be certain to attach it to the network we created earlier.
218218
```
219-
$ sudo podman run -dt --name webserver --network webnetwork quay.io/libpod/banner
219+
$ sudo podman run -d --name webserver --network webnetwork quay.io/libpod/banner
220220
03d82083c434d7e937fc0b87c25401f46ab5050007df403bf988e25e52c5cc40
221221
[baude@localhost ~]$ sudo podman exec webserver ip address show eth0
222222
2: eth0@if3: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state
@@ -270,7 +270,7 @@ network can communicate with the rootless web server.
270270
First, run the rootless web server and map port 80 from the container to a non-privileged
271271
port like 8080.
272272
```
273-
$ podman run -dt --name webserver -p 8080:80 quay.io/libpod/banner
273+
$ podman run -d --name webserver -p 8080:80 quay.io/libpod/banner
274274
17ea33ccd7f55ff45766b3ec596b990a5f2ba66eb9159cb89748a85dc3cebfe0
275275
```
276276
Because rootless containers cannot communicate with each other directly with TCP/IP

docs/tutorials/podman_tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For installing or building Podman, see the [installation instructions](https://p
2121
This sample container will run a very basic httpd server (named basic_httpd) that serves only its index
2222
page.
2323
```console
24-
podman run --name basic_httpd -dt -p 8080:80/tcp docker.io/nginx
24+
podman run --name basic_httpd -d -p 8080:80/tcp docker.io/nginx
2525
```
2626
Because the container is being run in detached mode, represented by the *-d* in the `podman run` command, Podman
2727
will print the container ID after it has run. Note that we use port forwarding to be able to

docs/tutorials/podman_tutorial_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Podman是由libpod库提供一个实用的程序,可以被用于创建和管
2323
这个示例容器会运行一个简单的只有主页的 httpd 服务器。
2424

2525
```console
26-
podman run --name basic_httpd -dt -p 8080:80/tcp docker.io/nginx
26+
podman run --name basic_httpd -d -p 8080:80/tcp docker.io/nginx
2727
```
2828

2929
因为命令中的 *-d* 参数表明容器以 "detached" 模式运行,所以 Podman 会在容器运行后打印容器的 ID。

0 commit comments

Comments
 (0)