Skip to content

Commit 4e30ffe

Browse files
authored
Update Docker command for Config Server discovery-first (#429)
Without the additional switch, tests fail in WSL2, because Config Server registers itself in Eureka using `host.docker.internal`, which is inaccessible when running inside WSL2/Ubuntu.
1 parent 543a346 commit 4e30ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommonTasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ docker run --rm -it --pull=always -p 8888:8888 -v $PWD/steeltoe/config-repo:/con
3232
To start a config server that registers itself with Eureka at startup (discovery-first):
3333

3434
```shell
35-
docker run --rm -it --pull=always -p 8888:8888 --name steeltoe-config -e eureka.client.enabled=true steeltoe.azurecr.io/config-server
35+
docker run --rm -it --pull=always -p 8888:8888 --name steeltoe-config -e eureka.client.enabled=true -e eureka.instance.hostname=localhost steeltoe.azurecr.io/config-server
3636
```
3737

3838
To start a config server that requires basic authentication (and change username and password from the defaults of devuser/devpassword):

0 commit comments

Comments
 (0)