Looking for a minimalistic SQLCMD (mssql-tools) container image? mssql-tools-alpine
is definitively a very good alternative.
This image size is ~17 MB, providing you the portability and agility you need to run queries using SQLCMD on the fly.
docker build . -t mssql-tools-alpine
docker container run --rm -it mssql-tools-alpine sqlcmd -?
docker container run -it --network host mssql-alpine sqlcmd -S <HOSTNAME|PORT> -U <USER> -P <PASSWORD>
If you have questions or comments about this demo, don't hesitate to contact me at crobles@dbamastery.com