Skip to content

Commit

Permalink
fix the bug of docker deployment admin in readme (#1234)
Browse files Browse the repository at this point in the history
fixes #1233
  • Loading branch information
yuluo-yx authored Sep 20, 2023
1 parent d2e10d1 commit fdd3a6e
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fdd3a6e

Please sign in to comment.