- latest (13/Dockerfile)
Set up an alias to run it from docker image:
alias sqlcmd="docker run -it --rm beeven/docker-sqlcmd"
According to this question, in order to connect to a named instance, you have to specify the port which the instance is using, e.p. sqlcmd -S 10.53.1.8,59013 -Uxxx -Pxxxx
.
Connect to the Database Engine With sqlcmd (MSDN)
$ sqlcmd -S 10.53.1.8 -U user_readonly
1> use TestDB;
2> go