In [ ]:
docker images "dbatools/*"
In [ ]:
docker ps -a
In [ ]:
# start container dockersql1
docker start dockersql1
# start container dockersql2
docker start dockersql2
In [ ]:
$dbatools1 = "localhost,1433"
$dbatools2 = "localhost,14333"
$secureString = ConvertTo-SecureString "dbatools.IO" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "sqladmin", $secureString
# Confirm connection
Test-DbaConnection -SqlInstance $dbatools1, $dbatools2 -SqlCredential $cred | Format-Table
In [ ]:
# Confirm that you can connect to the instances and see the databases
Get-DbaDatabase -SqlInstance $dbatools1,$dbatools2 -SqlCredential $cred | Format-Table