Update README.md

This commit is contained in:
bartek 2024-10-25 10:45:49 +02:00 committed by GitHub
parent 1b690c00cf
commit c0fbcb27aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ If you intent to `allow_insecure_coding` it might be a good idea to put the whol
docker run -i -t --rm -v $(pwd):/usr/src/app -w /usr/src/app node:latest npm start
```
When running in docker, if you want the bot to join your local minecraft server, you have to use special host address to call your localhost from your docker container: `host.docker.internal`. Put this into your `settings.json`:
When running in docker, if you want the bot to join your local minecraft server, you have to use a special host address to call your localhost from inside your docker container: `host.docker.internal`. Put this into your [settings.js](settings.js):
```
"host": "host.docker.internal", // instead of "localhost", to join your local miecraft from inside the docker container