This error typically occurs when the user running the Docker command doesn't have the necessary permissions to access the Docker daemon. To fix this, add the user to the docker group using the following command:
NB: This command will add both existing users and newly created ones to the Docker group :