Unverified Commit f9160faa authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Log messages

Log messages
parents 80a8f047 7782bb11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti

    Keep in mind that this doesn't affect any existing disks, and that it may impact performance as the image file will need to grow each time new data is added.

  * ### How can I increase the allocated amount of CPU/RAM?
  * ### How can I increase the amount of CPU/RAM?

    By default, a single core and 512MB of RAM is allocated to the container. To increase this, add the following environment variables:

+4 −4
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ configureDHCP() {
  ip route add "${NETWORK}" dev "${VM_NET_VLAN}" metric 0
  ip route add default via "${GATEWAY}"

  echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..."
  echo "Info: Acquiring an IP address via DHCP using MAC address ${VM_NET_MAC}..."

  ip l add link "${VM_NET_DEV}" name "${VM_NET_TAP}" address "${VM_NET_MAC}" type macvtap mode bridge || true
  ip l set "${VM_NET_TAP}" up
@@ -46,9 +46,9 @@ configureDHCP() {
  DHCP_IP=$(dhclient -v "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3)

  if [[ "${DHCP_IP}" == [0-9.]* ]]; then
    echo "Info: Retrieved IP ${DHCP_IP} via DHCP"
    echo "Info: Successfully acquired IP ${DHCP_IP} from the DHCP server..."
  else
    echo "ERROR: Cannot retrieve IP from DHCP using MAC ${VM_NET_MAC}" && exit 16
    echo "ERROR: Cannot acquire an IP address from the DHCP server" && exit 16
  fi

  ip a flush "${VM_NET_TAP}"