Differences between revisions 1 and 2
Revision 1 as of 2022-01-25 13:11:32
Size: 369
Editor: scot
Comment:
Revision 2 as of 2022-01-25 13:13:24
Size: 536
Editor: scot
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
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
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
Line 9: Line 8:

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
}}}

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

WebServices/SqlServerDockerFix (last edited 2022-01-25 14:39:02 by scot)