Locking down a fresh Linux server: What you actually need to do before bots find it
(unknownuniverse.uk)
❤ 1
Adding a user to the docker group is equivalent with granting it passwordless root privileges, never do that unless you know precisely why and understand the risks involved.
On the positive side, forbidding password-based auth, installing and using a firewall and locking down the root account is good advice