docker部署单节点pd, 报错, docker-compose.yml配置信息如下
version: "3"
services:
tikv-pd1:
image: pingcap/pd:latest
ports:
- "2379:2379"
- "2380:2380"
volumes:
- /mnt/tikv:/data
command:
- --name="pd1"
- --data-dir="/data/pd1"
- --log-file="/data/pd1.log"
- --client-urls="http://0.0.0.0:2379"
- --peer-urls="http://0.0.0.0:2380"
- --advertise-client-urls="http://192.168.1.94:2379"
- --advertise-peer-urls="http://192.168.1.94:2380"
- --initial-cluster="pd1=http://192.168.1.94:2380"
privileged: true
restart: on-failure
报错信息:
[2021/12/30 03:40:58.318 +00:00] [FATAL] [main.go:104] ["create server failed"] [error="[PD:url:ErrURLParse]parse \"http://0.0.0.0:2380\": first path segment in URL cannot contain colon"] [stack="github.com/pingcap/log.Fatal\
\t/go/pkg/mod/github.com/pingcap/log@v0.0.0-20210317133921-96f4fcab92a4/global.go:62\
main.main\
\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:104\
runtime.main\
\t/usr/local/go/src/runtime/proc.go:203"]