diff --git a/README.md b/README.md index 2cff146..1013d16 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ services: - NET_ADMIN devices: - /dev/net/tun - - /dev/kvm ports: - "12222:22" - "12223:23" @@ -55,7 +54,6 @@ services: - NET_ADMIN devices: - /dev/net/tun - - /dev/kvm ports: - "22222:22" - "22223:23" diff --git a/docker-compose.yml b/docker-compose.yml index f9d5e74..dd9b99e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,6 @@ services: - NET_ADMIN devices: - /dev/net/tun - - /dev/kvm ports: - "12222:22" - "12223:23" @@ -18,12 +17,13 @@ services: routeros-6-45: image: evilfreelancer/docker-routeros:6.46.5 + build: + context: . restart: unless-stopped cap_add: - NET_ADMIN devices: - /dev/net/tun - - /dev/kvm ports: - "22222:22" - "22223:23" diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index ecf5bf8..4b7c21d 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -50,7 +50,7 @@ udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE & # -nic: Use a TAP interface with our custom up/down scripts. # -drive: The VM image we're booting. exec qemu-system-x86_64 \ - -enable-kvm -nographic -serial mon:stdio \ + -nographic -serial mon:stdio \ -vnc 0.0.0.0:0 \ -m 256 \ -nic tap,id=qemu0,script=$QEMU_IFUP,downscript=$QEMU_IFDOWN \