Today, I suddenly found that the server CPU occupies too high. I checked that the getty process occupies too high.
the reason:
The /sbin/init and --privileged parameters are used when running the container with docker run. Use /sbin/init to start the container and add the --privileged parameter, which is equivalent to the docker container obtaining the full authority of the host. At this time, the init inside the docker container is confused with the init of the host.
Solution:
Close the getty process
root@VM-0-9-ubuntu:~# systemctl stop [email protected] root@VM-0-9-ubuntu:~# systemctl disable [email protected]
Viewing the process
CPU resource usage is down instantly