I run a SQL Server as a Docker container. Per default the container allows remote access.
Is there a way to prevent remote access?
I run a SQL Server as a Docker container. Per default the container allows remote access.
Is there a way to prevent remote access?
When you map the port, add 127.0.0.1 as the bound IP address. That will limit access to the mapped port to the host machine.
I.e. do something like
docker run -d -p 127.0.0.1:1433:1433 mcr.microsoft.com/mssql/server:2022-latest