Hi,
I'm creating a docker image over the official SQL Server 2019 linux image (Express edition).
The process is quite simple and as follow:
- pull the official MS linux image
docker pull mcr.microsoft.com/mssql/server:2019-latest)
- run a docker container
docker run
--rm
-v <mypath_on_host>:<mypath_in_container>
--name sqlserver
-e "MSSQL_PID=Express"
-e "ACCEPT_EULA=Y"
-e "MSSQL_SA_PASSWORD=<my_super_password>"
-e "MSSQL_BACKUP_DIR=/var/opt/mssql/backup"
-e "MSSQL_MEMORY_LIMIT_MB=8192"
-p 1433:1433
-d mcr.microsoft.com/mssql/server:2019-latest
- create an image from the container
docker commit -p sqlserver sqlserver-image
- create a new container from the new image
docker run --name sqlserver2 -e "MSSQL_PID" -e "MSSQL_SA_PASSWORD" -p 5000:1433 -d sqlserver-image
Once the new container is running the following error message related to polybase is shown in the log:
2020-xx-xx xx:xx:xx.xx spid13s Error: 46906, Severity: 16, State: 1.
2020-xx-xx xx:xx:xx.xx spid13s Unable to retrieve registry value 'NodeRole' from Windows registry key 'Software\Microsoft\Microsoft SQL Server\MSSQL\Polybase\Configuration': (null).
First, Express edition does not support Polybase so why is it trying to configure it.
Second the error message is related to Windows registry but I'm running a linux container....!!!
Any idea as to what this is related ?
It really looks like a bug...
Thanks.