From 31f814ac02ed17d20777f13ecc34275767b2710c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=B3=E8=A6=81=E8=85=B9=E8=82=8C=E7=9A=84=E7=86=8A?= <18252025676@163.com> Date: Sun, 30 Jun 2024 17:05:30 +0800 Subject: [PATCH] fix: docker-compose.yml ";" -> ":" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 命令行启动: docker run -d --name test_zookeeper -p 2181:2181 -e ZOO_MY_ID=1 -e ZOO_SERVERS=server.1=zoo1:2888:3888;2181 -h zoo1 zook eeper:3.9.0 报错信息: "docker run" requires at least 1 argument. See 'docker run --help'. Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Create and run a new container from an image zsh: command not found: 2181 --- docs/dev-ops/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dev-ops/docker-compose.yml b/docs/dev-ops/docker-compose.yml index b630930..a8ae580 100644 --- a/docs/dev-ops/docker-compose.yml +++ b/docs/dev-ops/docker-compose.yml @@ -10,4 +10,4 @@ services: - 2181:2181 environment: ZOO_MY_ID: 1 - ZOO_SERVERS: server.1=zoo1:2888:3888;2181 \ No newline at end of file + ZOO_SERVERS: server.1=zoo1:2888:3888:2181 -- GitLab