Merge pull request #25 from AaronJY/patch-1

Add --network="host" flag explanation/example
Louis Lam 2023-01-03 12:17:21 +08:00 committed by GitHub
commit 4b56b1bf40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

@ -14,3 +14,11 @@ Then you can test with these commands for example:
curl https://google.com
ping google.com
```
If running a ping results in a DNS-related error, try configuring your container to run using the host's network. To do this, run the `docker run` command with the `--network="host"` flag. For example:
```
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma --network="host" louislam/uptime-kuma:1
```
More information here: https://docs.docker.com/engine/reference/run/#network-host