Check out example codes for "sql server docker container". It will help you in understanding the concepts better.

Code Example 1

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<[email protected]>" `
   -p 1433:1433 --name sql1 `
   -d mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04

Code Example 2

# Run container
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest

# Connect to container
docker exec -it [id] /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "<[email protected]>"

Learn ReactJs, React Native from akashmittal.com