Sqlcmd – command line tool for Microsoft SQL Server.
1M+
Sqlcmd – command line tool for Microsoft SQL Server. Docker image for the new sqlcmd is also available.
This image also includes a small program called dos2unix, which allows converting Windows line endings to Unix, as sqlcmd returns data with "\r\n".
Warning: Ubuntu images are no longer build as of July 22 2026
When using this container you consent with the following licenses:
All other parts of this repository are licensed under BSD 2-Clause License.
Connect to an Sqlsrv inside another container (Container name is "my-sqlsrv"):
docker run -it --link my-sqlsrv:sqlsrv fabiang/sqlcmd -S sqlsrv -U sa
Or to any other server on the network:
docker run -it fabiang/sqlcmd -S some-sqlsrv -U sa
Get available options with:
docker run -it fabiang/sqlcmd '-?'
Content type
Image
Digest
sha256:14f21f831…
Size
10 MB
Last updated
7 days ago
docker pull fabiang/sqlcmd