Update docker-compose: add host gateway access

This commit is contained in:
Abinila Siva 2025-05-22 16:19:47 -04:00 committed by GitHub
parent 0fcb376281
commit 4d5127b5fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,9 +165,16 @@ devices:
- /dev/memx0
```
During the configuration process, you should run Docker in privileged mode.
During configuration, you must run Docker in privileged mode and ensure the container can access the host network gateway.
In `docker-compose.yml`, add: `privileged: true`
In your `docker-compose.yml`, also add:
```yaml
privileged: true
extra_hosts:
- "gateway.docker.internal:host-gateway"
```
If you can't use Docker Compose, you can run the container with something similar to this: