From fdd3a6e4d907aff65693fee132585404fcfe7724 Mon Sep 17 00:00:00 2001 From: YuLuo <1481556636@qq.com> Date: Wed, 20 Sep 2023 10:54:04 +0800 Subject: [PATCH] fix the bug of docker deployment admin in readme (#1234) fixes #1233 --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7e9856cfe..c3e36a504 100644 --- a/README.md +++ b/README.md @@ -32,17 +32,27 @@ Choose either method based on your environment, where Helm is the recommended in 5. Visit `http://localhost:38080`, default username and password are `root` ## 1.2 Run with Docker -Admin image is hosted at: https://hub.docker.com/repository/docker/apache/dubbo-admin + +> **Note: This method only supports running under linux system. Docker support for windows and mac systems will be released soon!** + +Dubbo-Admin image is hosted at: https://hub.docker.com/repository/docker/apache/dubbo-admin. You can run the image directly by mounting a volume from the host that contains an `application.properties` file with the accessible registry and config-center addresses specified. -```sh -$ docker run --net=host -it --rm -v /the/host/path/containing/properties:/config -p 8080:8080 apache/dubbo-admin +```shell +$ docker run -itd --net=host --name dubbo-admin -v /dubbo/dubbo-admin/properties:/config apache/dubbo-admin ``` -> Replace `/the/host/path/containing/properties` with the actual host path (must be an absolute path) that points to a directory containing `application.properties`. +> Replace `/dubbo/dubbo-admin/properties` with the actual host path (must be an absolute path) that points to a directory containing `application.properties`. + +The `application.properties` configuration file is as follows (taking the `zookeeper` registration center as an example): + +```properties +admin.registry.address=zookeeper://127.0.0.1:2181 +admin.config-center=zookeeper://127.0.0.1:2181 +``` -Open web browser and visit `http://localhost:8080`, default username and password are `root` +Open web browser and visit `http://localhost:38080`, default username and password are `root`. ## 1.3 Run with Kubernetes