Solution: Reinstall Docker and restart your terminal session. Ensure you are not running as root without Docker privileges.
You can install PhoneInfoga using pip, the Python package manager. Run the following command: install phoneinfoga in kali linux
sudo pip3 install phoneinfoga
phoneinfoga scan -n "+447123456789" --social