This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-admin.git
The following commit(s) were added to refs/heads/develop by this push:
new fdd3a6e4 fix the bug of docker deployment admin in readme (#1234)
fdd3a6e4 is described below
commit fdd3a6e4d907aff65693fee132585404fcfe7724
Author: YuLuo <[email protected]>
AuthorDate: Wed Sep 20 10:54:04 2023 +0800
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 7e9856cf..c3e36a50 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