Host machine is getting stuck when I restrict the memory and cpu during docker run

host machine is getting stuck when I restrict the memory and cpu during docker run. Here I’m running tshark container App and restricting memory to 30 MB and 20% of CPU using below command. The host machine is having linux kernel 5.4 version.

docker pull pataimages/tshark-3.3.0
docker run --privileged --network host --memory 30M --memory-swap 30M --cpus=“0.20” -it 037003bb2bc7

Below is error msg

“Memory cgroup out of memory: Killed process 3487 (tshark) total-vm:134276kB, anon-rss:29044kB, file-rss:0kB, shmem-rss:33496kB, UID:0 pgtables:100kB oom_score_adj:0”

(__irq_svc) from [] (_raw_spin_lock+0x23/0x54)
[ 297.365524] [] (_raw_spin_lock) from [] (get_task_mm+0x9a/0x27d)
[ 297.372990] [] (get_task_mm) from [] (v54_show_cmdline+0x2c/0x190)
[ 297.380803] [] (v54_show_cmdline) from [] (sched_show_task+0x1a0/0x2d0)
[ 297.388531] [] (sched_show_task) from [] (__oom_kill_process+0x2bc/0x4b4)
[ 297.396777] [] (__oom_kill_process) from [] (oom_kill_process+0xf8/0x198)
[ 297.405457] [] (oom_kill_process) from [] (out_of_memory+0x2e0/0x338)
[ 297.413962] [] (out_of_memory) from [] (mem_cgroup_out_of_memory+0x98/0xc8)
[ 297.422124] [] (mem_cgroup_out_of_memory) from [] (try_charge+0x620/0x85c)
[ 297.430629] [] (try_charge) from [] (mem_cgroup_try_charge+0x12c/0x1ec)
[ 297.439309] [] (mem_cgroup_try_charge) from [] (mem_cgroup_try_charge_delay+0x18/0x38)
[ 297.447560] [] (mem_cgroup_try_charge_delay) from [] (handle_mm_fault+0x33c/0xc1c)
[ 297.457281] [] (handle_mm_fault) from [] (do_page_fault+0x124/0x320)
[ 297.466567] [] (do_page_fault) from [] (do_DataAbort+0x14/0x54)
[ 297.474811] [] (do_DataAbort) from [] (__dabt_usr+0x2d/0x34)

Where same command work fine for 4.4 kernel version and OOM killer sends SIGTRM signal to tshark application.