Open
Description
Right now sqlcmd create
is following the documentation from:
which recommends:
sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=YourStrong@Passw0rd"
-p 1433:1433 --name sql1 --hostname sql1
-d
mcr.microsoft.com/mssql/server:2022-latest
This allows remote access to port 1433.
We can do better than this by default in sqlcmd create
, and lock this port down to local access only, and allow remote access as a non-default flag