Running Docker in MAC || getting iptables error when try to run DOCKER RUN IMAGENAME

Running Docker in MAC || getting iptables error when try to run DOCKER RUN IMAGENAME

Kindly assist on this isssue

LOG:
time=“2022-11-23T23:37:26.808638300Z” level=warning msg=“Running iptables --wait -t nat -L -n failed with message: iptables v1.4.21: can't initialize iptables table nat’: Permission denied (you must be root)\nPerhaps iptables or your kernel needs to be upgraded.`, error: exit status 3”

time=“2022-11-23T23:37:26.824962800Z” level=info msg=“stopping event stream following graceful shutdown” error=“” module=libcontainerd namespace=moby

time=“2022-11-23T23:37:26.825271100Z” level=info msg=“stopping event stream following graceful shutdown” error=“context canceled” module=libcontainerd namespace=plugins.moby

time=“2022-11-23T23:37:26.825298000Z” level=info msg=“stopping healthcheck following graceful shutdown” module=libcontainerd

failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.4.21: can’t initialize iptables table `nat’: Permission denied (you must be root)

Hello @catchmaurya,

How did you set up Docker on Mac?
I used Docker Desktop on Mac (MacBook M2 - Ventura) and it worked just fine.

Thanks,
Trung.