Blog

MikroTik container stopped? Two ways ours died

Our RouterOS container stopped and stayed stopped, twice: a memory kill nothing undid, and files in RAM on flash-folder boards. What we fixed, with timings.

Published November 25, 2026 · 17 minutes read

Key takeaways

  • 12 to 55 seconds: ten recoveries of our container by a one-minute RouterOS scheduler script, timed on MikroTik’s virtual router on 22 November 2026.
  • “killed due to out of memory”: our container read stopped at every sample, the last 108 seconds after the kill, on a cAP ax.
  • flash folder: on MikroTik boards that have one, our install keeps the device key there and pulls the image again at every boot.
  • PID 1: our container’s start script could outlive the VPN daemon, so RouterOS read running with no tunnel; since 22 November it exits too.
  • 2 minutes 57 seconds: how long our first fix let a container with a dead daemon read running, until review found the waits it skipped.
On this page (15)

A router owner’s log showed RouterOS killing our VPN container for memory, and nothing had started it again. We got the same line on a virtual router on 22 November 2026: we capped the container at 3 MiB, and 2 seconds later the log read killed due to out of memory. The container stayed down.

In our run, RouterOS did what MikroTik says it does: memory-max is a hard cap. Our part was the aftermath. Our install started the container at boot and at no other time. September had shown us a second flaw: on boards with a flash folder, every reboot erased the container’s files and its device key.

Below are both failures, a third we found by reading our own start script (our first fix for it missed a window), and the one-minute watchdog that restarts the container now. We also say how to tell the cases apart, and what we never proved.

The short version

In our tests on RouterOS 7.24, a container that stopped stayed stopped until something started it. MikroTik describes start-on-boot as the way to start containers after a reboot; after a memory kill or a manual stop, ours stayed down for as long as we watched (212 seconds at most). A one-minute scheduler script brought it back in 12 to 55 seconds.

Want only the fix? The install command that our setup page points to adds the watchdog already, and the script is printed below. Otherwise, find your case in the table first.

Why does a MikroTik container stay stopped once it stops?

In our tests, nothing in RouterOS started a stopped container again before the next boot, so every stop lasted. Three things took ours down: a memory kill, a reboot that wiped the container’s files on a board with a flash folder, and the VPN program inside dying. Each leaves different marks in /container/print and the log.

CaseWhat /container/print showsWhat fixed ours
Reboot on a flash-folder boardFlag S after the reboot (F while an image pull fails)Key kept on flash, image pulled again at boot
Memory killFlag S, with RouterOS’s own reason as the commentA one-minute watchdog, and a limit the container can start under
Daemon died, start script livedFlag R before 22 November; S afterThe script exits with the daemon; the watchdog starts it

R in /container/print means running and S stopped.

The log lines that go with each case, as RouterOS or our script wrote them (addresses and login lines removed from every log in this post):

exited with status 255: execvp /mikrotik.sh: No such file or directory
killed due to out of memory
mikrotik.sh: fv exited (status 137); exiting so the container is started again

Mind the limits of the table. We reproduced the first row with a RAM disk in place of the board, the second with a limit we set, and the third from code plus timed runs. It describes our container. Another can fail differently.

To run any container, RouterOS needs the container package installed and container mode switched on in device-mode, as MikroTik’s manual describes. Everything here assumes that is done.

What we ran
What ran
ForestVPN’s VPN container for MikroTik, installed with our install script: the published image, a release candidate and local builds of the fix.
Routers
MikroTik’s virtual router (CHR) on our own virtual machines, RouterOS 7.24.4 and 7.24.1; a cAP ax test router, RouterOS 7.24.5 (memory kill) and 7.24.1 (the September flash-folder test).
Dates
28 September 2026 (flash folder); 22 November 2026 (everything else).
Memory kills
memory-max set to 3 MiB or 2600 KiB, below what the container needed. This reproduces the log line and the stopped state, not a router running out of memory.
Flash-folder boards
RAM disks stood in for the board; no real 16 MB-flash board was rebooted.
Timing
ssh polls every 1 to 2 seconds plus the router’s own log lines, so each figure is good to about 2 seconds. Router clocks (the host clock for the 22 November reboot runs); the cAP ax times are converted to UTC.
Online and offline
Runs marked online connected to our service with a throwaway device. The others had no internet by design.
Daemon memory
Measured on Linux virtual machines, not routers.
Not tested

Rebooting a real board with 16 MB of flash; a whole router that runs short of memory; 32-bit ARM boards; restart-policy; USB or other attached disks; any RouterOS version besides 7.24.1, 7.24.4 and 7.24.5; any container but ours.

RouterOS also has its own WireGuard interface; we weighed it against a container in native or container.

Why does a reboot erase the container on a board with a flash folder?

Our install and help page both assume a rule for boards that list a flash folder in /file: that folder alone survives a reboot, and everything else is RAM. Our container’s root and key lived elsewhere. A router owner’s report in September showed the result: after a reboot our container died with execvp /mikrotik.sh: No such file or directory, and its device key was gone, so it came back as a new device.

Flash-folder test setup
Boards
A cAP ax test router (RouterOS 7.24.1) on 28 September 2026, and MikroTik’s virtual router (RouterOS 7.24.4) on 22 November 2026.
Stand-in
RAM (tmpfs) disks played the part of the flash-folder board and its RAM root. No real board was rebooted.
Not exercised
The scheduler at a real boot.
Limits
The two 13-second figures below come from different routers and measure different things.

MikroTik’s manual (version 7.26, read 25 November 2026) also steers small boards away from internal storage: pulling a remote image “requires a lot of free space in main memory”, so boards with 16 MB of flash “may use pre-built images on USB or other disk media”, and root-dir “should point to an external drive”, since internal storage is “not recommended”. We had gone the other way.

Here is what a reboot did, step by step:

  1. Boot finishes. The container’s settings survive in RouterOS’s configuration, but of the files we had put on the router, only those in flash remain.
  2. start-on-boot launches the container against a root-dir with nothing in it, so execvp cannot find the entrypoint.
  3. The mounted state folder, home of machine.key (the device’s identity), is empty too. A fresh image would register as a new device and print a new pairing code.

We reproduced the first two steps on 28 September on the cAP ax, with its root-dir on a RAM disk. Wiping the disk gave the same execvp error, and our boot script had the container back in 13 seconds with its key unchanged (the device reported device already registered).

To check a router, run /file/print where name="flash": if it prints a line, our install treats it as a flash-folder board and this section applies.

Not verified on hardware

No real board with 16 MB of flash was rebooted for this post or for the fix. A RAM disk played its part, and our help page says the same. Worse, the first version of our install kept the key exactly where a reboot would erase it, until 28 September.

How do you keep a container’s key on a board with a flash folder?

Our install now detects the folder and moves what must survive onto it. The router then needs internet at boot, because the image is pulled again every time, and it has no tunnel until that pull ends. The steps are in the flash folder recipe.

Reboot test setup
Router
MikroTik’s virtual router, RouterOS 7.24.4, host clock, 22 November 2026.
Stand-in
Two RAM disks played the flash folder and the RAM root.
Build
The build of the fix that shipped.
Network
Offline runs had no internet by design.

The change landed on 28 September 2026. One line tests for the folder (:global fvRAMROOT ([:len [/file/find where name="flash"]] > 0)). The key and state then live in flash/forestvpn: about 5 KB, a 64-byte key plus a state file near 1 KB. The log goes to the container’s own root. start-on-boot is off, since on an empty root it can only fail.

A boot script, forestvpn-repull, takes over. It pulls the image once the internet is up and starts the container. On 22 November the container ran 13 seconds after the reboot command (10:48:26 to 10:48:39), with the first pull attempt logged at 10:48:32. That pull read the image from a file on the router, not from the internet, so no download is inside those 13 seconds.

What if the image is not there at boot? The script keeps trying, 65 seconds apart, for up to 60 attempts. Over that stretch our watchdog ran four times and started nothing, on purpose: a start on an empty root only fails.

The boot with no image, attempt by attempt

The script logs pulling the image into the RAM root, attempt N, and after a failure image pull failed, retrying in 60s. We renamed the image file before rebooting, so the pull had nothing to read, and named it back at 10:52:43.

10:49:10  attempt 1
10:50:15  attempt 2
10:51:20  attempt 3
10:52:25  attempt 4
10:52:43  the image file is back
10:53:30  attempt 5
10:53:39  container running (56 s after the file came back)

Will start-on-boot bring back a container that RouterOS killed?

No, not in ours. start-on-boot is the setting that starts a container after a router reboot, and a memory kill is not a reboot: our container read stopped at every sample we took, the last 108 seconds after the kill (the kill runs). MikroTik’s manual says a container over memory-max “will be killed”, while memory-high only throttles.

A community write-up on container limitations says the nearest thing RouterOS has to Docker’s --restart is start-on-boot, so an automatic restart means a script.

What happens after a kill, in our runs:

  1. The container goes over memory-max.
  2. RouterOS kills it. Two things appear: the log line killed due to out of memory (topic container,error) and the same words as the ;;; comment above the container’s name.
  3. The flag reads S.
  4. Nothing in our install at that time looked at a stopped container after boot.

For sizes, and for what memory-high did in our run, see our RAM measurements.

What did a memory kill look like on a router?

Two seconds from limit to kill on MikroTik’s virtual router, then silence: S at every sample for the 31 seconds we watched. With the watchdog back on and the limit left at 3 MiB, the container was started and killed again, once a minute.

Memory-kill setup
Routers
MikroTik’s virtual router (RouterOS 7.24.4, router clock, 22 November 2026) and a cAP ax test router (RouterOS 7.24.5).
Image
On the virtual router, the image published at the time, with the watchdog off for the first runs and then an early two-line version; on the cAP ax, a release-candidate test container.
Limit
memory-max set by us to 3 MiB or 2600 KiB, below what the container needed.
Limits
This reproduces the log line and the stopped state, not a router running out of memory.
09:16:14  [our script]  watchdog off; memory-max set to 3 MiB on the running container
09:16:15  [log]         *** stop / exited with signal 9 (Killed)
09:16:16  [log]         killed due to out of memory
09:16:20  [print]        S   (and S at every sample until 09:16:47)
09:16:54  [our script]  watchdog on again, limit unchanged
09:17:31  [log]         ForestVPN: starting the stopped container
                         killed due to out of memory   (same second)
09:18:31  [log]         the same two lines again
09:19:29  [print]        S   (last sample)

The watchdog in the later runs was an early version, the same check pasted as two lines. The restart at 09:16:15 fits the manual: changing a setting of a running container, even its name or comment, restarts it.

Hardware behaved alike. On the cAP ax (RouterOS 7.24.5), a test container started under a 3 MiB cap died in that second and showed S in every sample from 12:57:05 to 12:57:56 UTC, the last 108 seconds after the kill (router log time converted to UTC).

Our third virtual-router pass set 2600 KiB on a healthy container at 09:20:09. Stop, kill, restart, start and the out-of-memory line all fell inside that second, and S held until 09:21:13 (64 seconds).

What filled the memory of the router in the report that started this, we do not know.

Is an out-of-memory kill a sign of a memory leak?

Not necessarily. We looked at our own daemon first: over eight runs of 48.6 to 60.6 minutes, its resident memory peaked at 7,396 kB.

Daemon memory runs
Where
Linux virtual machines (Ubuntu 26.04, 2 vCPUs), not a router, 22 November 2026.
What ran
The two image versions published at the time. Two runs used 32-bit x86 builds; none used 32-bit ARM.
Stress
In six of the eight runs, UDP cut for 20 or 60 seconds and allowed for as long, over and over, so the daemon kept losing and rebuilding its connection; two steady runs were the control.
Sampling
Every 15 seconds.
Limits
A slower leak would need longer runs.

The kernel’s own high-water mark (VmHWM) ended each run between 5,936 and 7,396 kB; our 15-second samples of VmRSS peaked between 5,664 and 7,360 kB. From first sample to last, the biggest rise was 460 kB, in a 32-bit run of 48.6 minutes. Each run ended with 8 or 9 threads and 22 or 23 open files, at or within one of its lowest count.

That rules out a fast climb under those conditions and nothing more. It says nothing about what else filled the router. On your own, read free memory with the container stopped and then running, the way the RAM post does.

How can a container read running while the VPN inside it is dead?

In our runs, RouterOS read a container as running for exactly as long as its first process (PID 1) lived; without a healthcheck, it does not look at the program you care about. Ours starts with a script, mikrotik.sh, that launches the VPN daemon, fv. Before 22 November that script could keep going after the daemon was gone. RouterOS then read running with no tunnel, and a watchdog that restarts stopped containers would find nothing to restart.

How we found the gap
Found by
Reading our own start script during the memory fix; the gap was never seen on a router before the fix.
Proved on
MikroTik’s virtual router, RouterOS 7.24.4 and 7.24.1, 22 November 2026.
Flow
The flow below shows the design, not a measurement.

We found this by reading our own code during the memory fix and never saw it on a router before the fix. Our own first build of the fix then showed it, in the next section.

Watchdog alone

  1. Daemon killed
  2. Start script keeps running it never checked
  3. RouterOS: running
  4. Watchdog: nothing to do

Watchdog plus a script that exits

  1. Daemon killed
  2. Script exits with the daemon’s status within 1 s in a wait, within 10 s in its loop
  3. RouterOS: stopped, exited with status 137
  4. Watchdog starts it at the next minute tick
What RouterOS reports when the daemon dies

In our runs, the first process decided whether RouterOS reported running or stopped. This is the function that makes ours exit (shell, trimmed to the body):

# Called from every wait below, not only the final loop, so a death during a startup wait is seen
# within a second, not after the wait. A no-op until fv has exited.
check_fv() {
    if [ -s "$FV_EXIT" ]; then
        read -r rc < "$FV_EXIT" || true
        [ "${rc:-0}" -gt 0 ] 2>/dev/null || rc=1
        log "fv exited (status $rc); exiting so the container is started again"
        exit "$rc"
    fi
}

Our daemon runs in a subshell that records its exit status in a file. Each wait and the main loop call check_fv, which turns a 0 into a 1 so a dead daemon never passes for a clean stop. The main loop looks every 10 seconds.

Why can a container read running minutes after its daemon died?

The first build of our fix called check_fv only in the start script’s final loop. A daemon that died while the script was still waiting for its routes went unnoticed, and the container read running for nearly three minutes.

Missed-window run
Router
MikroTik’s virtual router, RouterOS 7.24.4, router clock, 22 November 2026.
Build
The first build of the fix, then the build that shipped.
Network
Offline by design.
Kill
A kill -9 of the daemon from the container’s shell.
09:24:33  [container shell]  kill -9 of the daemon (script still in its startup waits)
09:25:21  [print]            R   (48 s after the kill)
09:26:15  [log]             table 100 is still empty -- nothing will route into fvpn0
09:27:30  [log]             mikrotik.sh: up
                             fv exited (status 137); exiting so the container is started again
09:28:14  [log]             ForestVPN: starting the stopped container

Subtract: 09:27:30 minus 09:24:33 is 2 minutes 57 seconds (177 seconds) of a running container with a dead daemon in it. It then sat stopped for 44 seconds, until the 09:28:14 tick.

Three watchdog ticks fell inside the window and found nothing to start.

Notice what the log lacks. Watchdog starts land 14 seconds past the minute: 09:23:14, 09:24:14, then 09:28:14. Nothing at 09:25:14, 09:26:14 or 09:27:14, since those ticks saw a container that read running. Review caught the gap that day. In the shipped fix every wait calls check_fv, once a second, so one function call in each wait is all that separates the failing run from the passing one.

The build that shipped passed. Killing the daemon during the startup waits at 10:29:02 gave S and ;;; exited with status 137 at 10:29:04 (137 is 128 plus 9, the kill signal, passed on by the script), and the container ran again at 10:29:48: 46 seconds after the kill.

A kill in the steady loop at 10:38:54 took the script down at 10:39:04, since it looks every 10 seconds, and the container ran at 10:39:48 (54 seconds). On a release candidate (RouterOS 7.24.1, online) the same kill stopped it after about 2 seconds, and it ran again after about 12, connected.

Running describes a process and says nothing about traffic. In October a tunnel on one of our own routers renewed its handshake about every three minutes for 40 hours and carried no user data (handshake but no traffic). If yours runs and nothing routes, connected but no internet on MikroTik lists the routing causes.

How can a MikroTik container restart itself automatically?

Put a start command in a scheduler script and let it run on a timer. Ours fires every minute, and across ten timed recoveries on 22 November 2026, all on MikroTik’s virtual router, it had the container running again within 12 to 55 seconds.

A router in a cupboard is not restarted by hand, so the check lives on the router. Each tick runs five steps:

  1. The scheduler entry fires forestvpn-watch (interval=1m).
  2. Is there exactly one container called fvpn? If not, stop here.
  3. Is forestvpn-repull still running? On flash-folder boards that boot script owns the first start, so stop here too.
  4. Is the container not running? Then log a warning and call /container/start.
  5. A failed start is ignored; the next tick retries.

The script as we ship it:

/system/script/add name=forestvpn-watch comment="forestvpn" source={
:local c [/container/find where name="fvpn"]
:if ([:len $c] = 1) do={
    :if ([:len [/system/script/job/find where script="forestvpn-repull"]] = 0) do={
        :if (![/container/get $c running]) do={
            :log warning "ForestVPN: starting the stopped container"
            :do { /container/start $c } on-error={}
        }
    }
}
}
/system/scheduler/add name=forestvpn-watch interval=1m comment="forestvpn" \
    on-event="/system/script/run forestvpn-watch"

It reads only the running property; we tested only our container. We test running and not the S flag because a failed pull shows F.

A watchdog can’t fix a limit that’s too small

Leave memory-max at 3 MiB and the watchdog starts the container at 09:17:31, only for RouterOS to kill it that second, and again at 09:18:31 (the kill runs). If the container cannot start under its limit, the watchdog becomes a once-a-minute loop. Workable sizes are in the RAM post.

RouterOS details the watchdog depends on
  1. Editing any setting on a running container restarts it. The manual says so, and our third memory pass shows it.
  2. /container/repull returns at once and works in the background. When it finishes, the container is stopped and stays so (measured on a cAP ax, RouterOS 7.24.1).
  3. A failed pull shows as flag F in /container/print, but a script can read it only through print as-value (key download/extract failed). A find where "download/extract failed" also hit a healthy running container, because the quoted string counts as true and an unknown flag name answers 0, not an error (RouterOS 7.24.1).
  4. RouterOS prints its reason for the last stop on the ;;; comment line above the name.
  5. Adding a script or scheduler under an existing name fails with “already exists”. Our install removes the old ones first, and after a second paste there was exactly one of each.

How long does the watchdog take to bring it back?

Between 12 and 55 seconds in our ten runs, never longer than one scheduler tick. The wait is the time to the next tick plus the start itself.

Recovery runs
Router
MikroTik’s virtual router, RouterOS 7.24.1 and 7.24.4, 22 November 2026.
Builds
A first build of the fix, the build that shipped, a release candidate and the published image.
Stops
By hand, by kill -9 of the daemon, and by a memory limit lifted a second after the kill.
Limits
All ten ran on the virtual router. None ran on a board.

One scheduler tick

Stopped by handFirst build of the fix, offline: 55, below the targetShipped build, offline: 23, below the targetFirst build of the fix, online: 31, connected at 37 s, below the targetShipped build, online: 33, connected at 39 s, below the targetRelease candidate, online: 17, below the targetPublished image, fresh install: 48, connected, below the target
Daemon killedShipped build, startup waits: 46, below the targetShipped build, steady loop: 54, below the targetRelease candidate, online: 12, connected, below the target
Memory kill, limit lifted a second laterShipped build, offline: 34, below the target
Seconds from the stop to running under our one-minute watchdog (the daemon runs count from the kill): ten recoveries on MikroTik’s virtual router, RouterOS 7.24.1 and 7.24.4, 22 November 2026.
Show the data
GroupMeasurementValue, sNote
Stopped by handFirst build of the fix, offline55
Stopped by handShipped build, offline23
Stopped by handFirst build of the fix, online31connected at 37 s
Stopped by handShipped build, online33connected at 39 s
Stopped by handRelease candidate, online17
Stopped by handPublished image, fresh install48connected
Daemon killedShipped build, startup waits46
Daemon killedShipped build, steady loop54
Daemon killedRelease candidate, online12connected
Memory kill, limit lifted a second laterShipped build, offline34

The ten runs read 55, 23, 31, 33, 17, 48, 46, 54, 12 and 34 seconds; the three daemon runs count from the kill, so they include the script’s own wait before the container stopped. Ten runs are not a distribution, so take the range and not an average.

Why the spread? Each recovery waits for the next tick, anywhere from 0 to 60 seconds, plus about a second to start (in one log the watchdog line and the daemon’s Device started share a second). A daemon that dies in the steady loop adds up to 10 seconds before the script notices. That puts the worst case near 71 seconds. We never measured one.

Running is not yet connected. In the two online runs that timed it, the daemon reported connected 37 and 39 seconds after the stop, on its last session.

Per day the script runs 1,440 times and reads one property of one container; we never measured the CPU it uses. If a container can never start, it is retried every minute for good, with one warning each.

How do I stop a watched container deliberately?

Disable the watchdog’s scheduler first (ours is forestvpn-watch). Otherwise the container is started again within a minute:

/system/scheduler/disable forestvpn-watch
/container/stop [find name="fvpn"]
Stop-on-purpose runs
Router
MikroTik’s virtual router, RouterOS 7.24.4, 22 November 2026.
Builds
The first build of the fix and the build that shipped, one pass each.
Limits
Our uninstall steps were run once.

Our scheduler, disabled, left the stopped container stopped for 212 seconds in both passes. Enabled again, it was back after 3 seconds on the build that shipped and 57 on the first build, where the tick happened to land. Our uninstall steps remove the watchdog before the container; after them, nothing of ours came back in the next 90 seconds.

Any guide that stops the container needs the same care on an install with the watchdog: disable the scheduler first, enable it afterwards. Updating the image is such a guide, since its step 2 stops and removes the container. What your LAN’s traffic does while the tunnel is down belongs to our kill switch test, and we claim nothing about it here.

Which of the three failures does my container have?

Five reads separate the cases: the /file listing, the flag and comment /container/print gives, the last log lines, free memory, and the scheduler list. Our three failures each left a different line: exited with status 255: execvp /mikrotik.sh: No such file or directory after a reboot on a flash-folder board, killed due to out of memory, or exited with status 137.

  1. /file/print where name="flash": any output at all means a flash-folder board.
  2. /container/print: R is running, S stopped, F a failed download. The ;;; line above the name is RouterOS’s reason.
  3. /log/print where topics~"container": a container’s own output lands in the log only if it was added with logging=yes. Read the line just before the stop. A plain stop prints signal 9, which is not a memory kill; the RAM post shows both.
  4. /system/resource/print: compare free memory with the container up and down.
  5. /system/scheduler/print: does anything exist that would start it again?

Compare with the table at the top. If the router was linked to your account, a pairing code in the log after a reboot is a further sign that our device key is gone; an unlinked router prints one at every start.

Why didn’t we use restart-policy, a healthcheck or a tighter limit?

In MikroTik’s manual a healthcheck can stop an unhealthy container (stop-on-unhealthy), and nothing in that section starts a stopped one. A limit our container could not start under killed it at every start. And restart-policy is a setting we never tested.

RouterOS 7.24.1 prints restart-policy=no for our container. The manual page we read does not describe the setting, says nothing on how it treats a memory kill, and our install must also run on RouterOS 7.21. So we left it alone.

The manual’s own healthcheck example sends an e-mail when a container turns unhealthy; it does not start one.

Probing the tunnel from a watchdog and restarting on failure is a guess, and a guess can restart a healthy container. A script that exits with its daemon makes no guess.

Setting memory-max tight to protect the board loops (see the kill runs), and we hold no memory figure for 32-bit ARM boards to size one from. As for start-on-boot on flash-folder boards, in our install it can only fail: our root-dir is in RAM and stays empty until the image is pulled again.

What keeps a RouterOS container running unattended?

Ask of every way a container can stop: what starts it again? start-on-boot answers for the boot only. Until we added the scheduler, nothing else in RouterOS brought ours back, so two of our cases had “reboot the router” as the only cure. Four rules came out of it:

  1. Make the first process exit when the real job dies. Without a healthcheck, RouterOS’s running flag follows PID 1 alone, and in our container that blind spot hid 2 minutes 57 seconds of a dead daemon.

  2. Know where root-dir and the mounts live. On a board with a flash folder, keep what must survive on flash.

  3. Give memory-max enough room for the container to start, or the watchdog turns into a loop.

  4. Let one script own each start. Ours stands aside while the boot script pulls the image: that is why four ticks started nothing in the no-image boot.

What don’t we know yet?

We never ran a real board with the small flash through a reboot with our install: a RAM disk stood in. A router running out of memory as a whole was never reproduced, because every kill here came from a limit we set. What filled the router in the report, we cannot say (see the kill runs).

Our process’s memory on 32-bit ARM boards was never measured; an emulated attempt never got online. We did not test restart-policy, and if it covers a memory kill, the watchdog may be redundant on newer RouterOS. Every timed recovery ran on the virtual router, none on a board.

Whether a minute is quick enough for a router that carries a whole network is open. A shorter interval is a single setting, and we have not decided we need one.

Disks are the last gap. In a MikroTik forum thread started on 6 November 2023, owners describe containers that would not start after a power cut until the router was rebooted; a reply in September 2024 suspects a USB disk that comes back under another name. We tested no disks.

See also: the MikroTik download page.

Questions and answers

What does “Process exited with status 1” mean on a MikroTik container?

It means the container’s first process ended with exit code 1, so the container stopped. The code alone doesn’t say why; the program’s own output does, and it reaches the log only if the container was added with logging=yes. In ours, status 137 meant the VPN daemon had been killed and our start script exited on purpose.

Why does my MikroTik container stop with nothing in the log?

Check that it was added with logging=yes: MikroTik’s manual says that is what sends a container’s output to the log. Then read /container/print. In our tests the comment line above the container’s name held RouterOS’s own reason, such as “killed due to out of memory” or “exited with status 137”.

Which RouterOS version added start-on-boot for containers?

MikroTik’s Container page says start-on-boot exists from RouterOS 7.6beta6. Our install needs RouterOS 7.21 or later for another reason: 7.21 renamed the container mount property, so the mount block in our install cannot parse on older versions.

Sources

  1. MikroTik manual: Containers (read November 25, 2026)
  2. MikroTik Help: Container (read November 25, 2026)
  3. MikroTik forum: Containers won’t start after power loss (6 November 2023) (read November 25, 2026)
  4. tangentsoft: MikroTik container limitations (read November 25, 2026)

How this was made

AI-assisted drafting from our own timed runs of 22 November 2026 and 28 September 2026 on MikroTik’s virtual router, a cAP ax test router and Linux virtual machines, checked against the raw logs and our install code, with automated and editorial review.

All posts

Back to top

Ask us anything