return home

Docker Stats Not Showing Memory Usage On Raspberry Pi 4b

I noticed that docker stats wasn’t showing memory usage on my Raspberry Pi 4B (64-bit Debian).

The memory-related columns like MEM USAGE / LIMIT and MEM % were showing zeros for all containers. 0 memory usage


🔧 Solution

Enable memory cgroup support by modifying the boot parameters:

  1. Open the boot configuration file:
     sudo nano /boot/firmware/cmdline.txt
    
  2. Append the following parameters at the end of the existing line (do not create a new line):
     cgroup_enable=cpuset cgroup_enable=memory group_memory=1
    
  3. sudo reboot it.

After rebooting, docker stats should now correctly show memory usage for all containers. showing memory usage


🔗 References