Should I install docker engine if I already install docker desktop?

I want to use Act (GitHub - nektos/act: Run your GitHub Actions locally 🚀). When try to start it, I have see this message
failed to obtain container engine info: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
But I already launch docker desctop. How I can launch docker engine inside docker desctop?

systemctl start docker
Failed to start docker.service: Unit docker.service not found.

but if I use docker compose command for other project it will work well
System: Ubuntu 22.04.1

Docker Desktop runs a virtual machine and the Docker daemon is inside it. All you need is the Docker client (docker-cli) not the daemon (docker-ce). Installing Docker Desktop and the Docker engine (daemon/docker-ce) on the same machine is usually a mistake and if you do that you can and up having multiple docker contexts

docker context ls

and desktop-linux is the one you need

docker context use desktop-linux

If you activated another, you will thet the error message you got.