From f92769a298538f47b6019765e65cd2a5db81f8a5 Mon Sep 17 00:00:00 2001 From: zyimm Date: Tue, 7 May 2024 11:15:07 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=F0=9F=AB=A1Docker=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=AE=B9=E5=99=A8=E5=B9=B6=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/Linux/docker/container-network-ip.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/Linux/docker/container-network-ip.md b/_posts/Linux/docker/container-network-ip.md index dd8f00d..cb70d52 100644 --- a/_posts/Linux/docker/container-network-ip.md +++ b/_posts/Linux/docker/container-network-ip.md @@ -17,7 +17,7 @@ docker network create --subnet=172.0.0.0/24 my-docker-net ### 2.指定容器网络并设置固定ip ```sh -docker run -d --net=my-docker-net --ip=172.0.0.3 --name=[容器名字] -v [镜像名字] +docker run -d --net=my-docker-net --ip=172.0.0.3 --name=[容器名字] [镜像名字] ``` `--net` 指定网络