No, you can't have a named instance. If you need multiple containers, you can just use different ports. This was addressed in another question here:
Your password sql19pwd
is too weak. SQL Server will try to start, and then shut down. You can confirm this using docker logs <container name>
. This was also addressed in a roundabout way here:
In your case:
docker logs sql19
Will yield, somewhere toward the end:
ERROR: Unable to set system administrator password: Password validation failed. The password does not meet SQL Server password policy requirements because it is not complex enough. The password must be at least 8 characters long and contain characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10 digits, and Symbols..
If you try a more complex but shorter password, it would be:
ERROR: Unable to set system administrator password: Password validation failed. The password does not meet SQL Server password policy requirements because it is too short. The password must be at least 8 characters..
I've been using mnemonics for Docker container passwords, but also trying to avoid characters like #
and $
which can have special meaning. My favorite recently when using Azure SQL Edge is 3dg3Y0urB3ts
.