mysql – Why does mysqld cost so much memory?

I am a Linux beginner. The memory of the server computer is 2GB.

I just installed a MySQL server: latest version in Docker and run it in a container.

Now MySQL has no database table, just a new MySQL.

While, the CentOS8 hangs frequently after I installed it.

I verified the cost of memory this way:

[root@test ~]# ps -aux | sort -k4nr | head -10
mysql    19410  1.1 20.9 1854552 391940 ?      Ssl  20:34   0:01 mysqld
root      1452  0.4 12.0 3151680 225168 ?      Sl   18:49   0:30 /usr/bin/gnome-shell
root     19101  3.6  7.9 1276148 149300 pts/1  SLl+ 20:33   0:07 /usr/libexec/mysql-workbench/mysql-workbench-bin
root      2088  0.1  2.4 1143892 45092 ?       Ssl  18:50   0:06 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root      1351  0.0  2.0 569096 37964 tty1     S

As you see, mysqld costs more.

After killing the mysqldEveryone runs well. The system will no longer crash while you cannot access the database as well.

I never knew this before running MySQL on Windows Sever 2016 on the same computer.

How can i solve this? Would you be so kind as to help me? Thank you.