C:\Users\poboh>docker run -e ‘ACCEPT_EULA’ -e ‘SA_PASSWORD=PaSSword12!’ -p 1433:1433 -d microsoft/mssql-server-linux
5ae946e91edcccffa1ea139d9e4b4c1171b2d4928ae3743e83768f53b284dd1d
docker: 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.
C:\Users\poboh>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/mssql-server-linux latest 314918ddaedf 2 years ago 1.35GB
C:\Users\poboh>docker run -e “ACCEPT_EULA” -e “SA_PASSWORD=PaSSword12!” -p 1433:1433 -d microsoft/mssql-server-linux
b8574955575939b1e82a17492f7306028aee816b4e9567c352140758e40b5bb7
docker: 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.
C:\Users\poboh>docker run -e “ACCEPT_EULA” -e “SA_PASSWORD=PaSSword12!” -p 1444:1433 -d microsoft/mssql-server-linux
bd64e6c1c2b7fbf03eb3e2e98e38e6a77704688c920176c55391319cf09ae56f
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:1444: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
用了各种办法,重装docker,单双引号更换,更换端口,都无法启动mssql
. Net Core实战+RESTful思想纵深课程,开发优雅RESTful风格API。
了解课程