SQL Server Docker Fix

You try to run a SQL Server docker image with the default port (1433) and you get the following error message:

Error response from daemon: Ports are not available: listen tcp 0.0.0.0:1433: bind: An attempt was made to access a socket in a way forbidden by its access permissions. Error: failed to start containers: sqlserver

Ok, there is a simple fix for this in windows 10/11 that has worked for me in the past:

> net stop winnat
> docker start sqlserver
> net start winnat