From f4fdff13176ef44ec7db5cf4c105499ad9b3dded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AD=E5=BE=8B=E3=81=93?= <76961348+nelvko@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:56:07 +0800 Subject: [PATCH] docs: delete unnecessary options (#333) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind documentation #### What this PR does / why we need it: 同时使用 `-it` 和 `-d`,`-d` 会覆盖 `-it`,容器将会在后台运行,而 `-it` 参数请求的交互式会话和伪终端不会生效。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- versioned_docs/version-2.13/getting-started/install/docker.md | 4 ++-- versioned_docs/version-2.13/getting-started/install/podman.md | 4 ++-- versioned_docs/version-2.13/intro.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/versioned_docs/version-2.13/getting-started/install/docker.md b/versioned_docs/version-2.13/getting-started/install/docker.md index fc59aa3..ecf337b 100644 --- a/versioned_docs/version-2.13/getting-started/install/docker.md +++ b/versioned_docs/version-2.13/getting-started/install/docker.md @@ -42,7 +42,7 @@ import DockerArgs from "./slots/docker-args.md" 1. 创建容器 ```bash - docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 + docker run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 ``` :::info @@ -86,5 +86,5 @@ import DockerArgs from "./slots/docker-args.md" 修改版本号后,按照最初安装的方式,重新创建容器即可。 ```bash - docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 + docker run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 ``` diff --git a/versioned_docs/version-2.13/getting-started/install/podman.md b/versioned_docs/version-2.13/getting-started/install/podman.md index e026e40..20b30a7 100644 --- a/versioned_docs/version-2.13/getting-started/install/podman.md +++ b/versioned_docs/version-2.13/getting-started/install/podman.md @@ -68,7 +68,7 @@ Podman 采用无守护进程的包容性架构,因此可以更安全、更简 ```bash mkdir -p ~/.halo2 - podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 + podman run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 ``` :::info @@ -112,7 +112,7 @@ Podman 采用无守护进程的包容性架构,因此可以更安全、更简 修改版本号后,按照最初安装的方式,重新创建容器即可。 ```bash - podman run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 + podman run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 ``` ## 使用 [Podman Quadlet](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html) diff --git a/versioned_docs/version-2.13/intro.md b/versioned_docs/version-2.13/intro.md index acd3cdc..57bb8d3 100644 --- a/versioned_docs/version-2.13/intro.md +++ b/versioned_docs/version-2.13/intro.md @@ -34,7 +34,7 @@ slug: / ## 快速开始 ```bash -docker run -it -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 +docker run -d --name halo -p 8090:8090 -v ~/.halo2:/root/.halo2 halohub/halo:2.13 ``` 以上仅作为体验使用,详细部署文档请查阅: