Resolve Docker Error - Error response from daemon: Ports are not available

Error

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:3306 -> 0.0.0.0:0: listen tcp 0.0.0.0:3306: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

Solution

restart winnnat

net stop winnat
net start winnat