The solution for this problem mentioned above:
"I get the following message when trying to use systemctl: System has not been booted with systemd as init system (PID 1). Can't operate."
You have to execute this commands in WSL2:
wsl --update
wsl --shutdown
sudo nano /etc/wsl.conf
Add this line if not exists yet: [boot]systemd=true
Save file wsl.conf(Ctrl + X, before Y Enter).
wsl --shutdown
systemctl status docker