This repository contains the Dockerfile for the brocksolutions/sqlcmd
container image. This image provides the latest version of
Microsoft's sqlcmd
(Go) tool.
Microsoft does not currently distribute an official sqlcmd
container image, so this image simply bundles the sqlcmd
file into
a minimal container image.
latest
- The latest version of the container.
1.5.0.x
- A specific build of the image.
The entrypoint in the container is set to the /usr/bin/sqlcmd
. This means you can run the container in the same way you would run
the sqlcmd
tool locally, and simply pass in any additional parameters you amy need. For example:
docker run --rm brocksolutions/sqlcmd:latest -S myserver -U myuser -P mypassword -Q "SELECT @@VERSION"