Network configuration

This commit is contained in:
Kroese 2023-05-15 22:23:11 +02:00 committed by GitHub
parent 4f8bbc2559
commit 0eee9eb05e

View File

@ -119,17 +119,16 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
Be sure to modify these values to match your local subnet. Be sure to modify these values to match your local subnet.
Once you have created the network, modify the container's configuration in your compose file as follows: Once you have created the network, change your compose file to make it look as follows:
```yaml ```yaml
networks: services:
vdsm: dsm:
ipv4_address: 192.168.0.100 ..<snip>..
``` networks:
vdsm:
ipv4_address: 192.168.0.100
Finally, add the network to the bottom of your compose file:
```yaml
networks: networks:
vdsm: vdsm:
external: true external: true
@ -151,7 +150,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
devices: devices:
- /dev/vhost-net - /dev/vhost-net
device_cgroup_rules: device_cgroup_rules:
- 'c 510:* rwm' - 'c 511:* rwm'
``` ```
Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in case of an error. Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in case of an error.