mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 08:01:26 +00:00
Sync
This commit is contained in:
+1
-7
@@ -46,9 +46,6 @@ configureDHCP() {
|
||||
echo "ERROR: Cannot retrieve IP from DHCP using MAC ${VM_NET_MAC}" && exit 16
|
||||
fi
|
||||
|
||||
# Store IP for Docker healthcheck
|
||||
echo "${DHCP_IP}" > "/var/qemu.ip"
|
||||
|
||||
ip a flush "${VM_NET_TAP}"
|
||||
|
||||
TAP_PATH="/dev/tap$(</sys/class/net/${VM_NET_TAP}/ifindex)"
|
||||
@@ -83,11 +80,8 @@ configureDHCP() {
|
||||
|
||||
configureNAT () {
|
||||
|
||||
VM_NET_TAP="qemu"
|
||||
VM_NET_IP='20.20.20.21'
|
||||
VM_NET_TAP="_VmNatTap"
|
||||
|
||||
# Store IP for Docker healthcheck
|
||||
echo "${VM_NET_IP}" > "/var/qemu.ip"
|
||||
|
||||
#Create bridge with static IP for the VM guest
|
||||
brctl addbr dockerbridge
|
||||
|
||||
Reference in New Issue
Block a user