Docker NavContainerHelper error

TallyHo
Member Posts: 417
Hi folks,
I'm trying to get a NAV/BC container working using docker and NavContainerHelper.
All seems to be going well, but I'm stuck on this error opening the Development environment after installation of the BC (latest) container:
Microsoft Dynamics NAV Development Environment
The following SQL Server error or errors occurred:
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: no credentials are available in the security package
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context
OK
I'm sure this has something to do with the credentials I used when asked for while running New-NavContainer, but
I tried all available users on my computer, and it is still not working.
Note that I'm using a Windows 10 professional system, that is not connected to a domain, and has only local users.
Does anybody know how to fix this?
I'm trying to get a NAV/BC container working using docker and NavContainerHelper.
All seems to be going well, but I'm stuck on this error opening the Development environment after installation of the BC (latest) container:
Microsoft Dynamics NAV Development Environment
The following SQL Server error or errors occurred:
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: no credentials are available in the security package
-2146893042,"HY000",[Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context
OK
I'm sure this has something to do with the credentials I used when asked for while running New-NavContainer, but
I tried all available users on my computer, and it is still not working.
Note that I'm using a Windows 10 professional system, that is not connected to a domain, and has only local users.
Does anybody know how to fix this?
0
Best Answer
-
Hi @TallyHo,
What is your command for setting up the new container?
My personal way of setting up a container is something like :
#Set variable
$containerName = 'MyNewContainer'
$DevLic = 'C:\Developer\BC140_Dev.flf'
$password = ConvertTo-SecureString “MySuperSecretPassword” -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential (“Admin”, $password)
$imgName = 'microsoft/bcsandbox:dk'
#NAVUserPass
New-NavContainer -accept_eula -containerName $containerName -auth NavUserPassword -Credential $cred -imageName $imgName -assignPremiumPlan -licenseFile $DevLic -includeCSide -updatehosts -doNotExportObjectsToText -enableSymbolLoading
This is working for me, but i also took a shortcut and used NAVUSERPASSWORDFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.5
Answers
-
Hi @TallyHo,
What is your command for setting up the new container?
My personal way of setting up a container is something like :
#Set variable
$containerName = 'MyNewContainer'
$DevLic = 'C:\Developer\BC140_Dev.flf'
$password = ConvertTo-SecureString “MySuperSecretPassword” -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential (“Admin”, $password)
$imgName = 'microsoft/bcsandbox:dk'
#NAVUserPass
New-NavContainer -accept_eula -containerName $containerName -auth NavUserPassword -Credential $cred -imageName $imgName -assignPremiumPlan -licenseFile $DevLic -includeCSide -updatehosts -doNotExportObjectsToText -enableSymbolLoading
This is working for me, but i also took a shortcut and used NAVUSERPASSWORDFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.5 -
Hi Sander,
I was using this line:
New-NavContainer -containerName BCdocker1 -imageName microsoft/bcsandbox:nl -accept_eula -Credential Admin -doNotExportObjectsToText -auth Windows -includeCSide
But yours is working great, I don't mind navuserpassword.
Thanks a lot!
0 -
@TallyHo You are welcome
For furture referance if you want to use windows login you can map you creditials like:
$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."
And pass this to you container :-)For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.0 -
Thanks 👍0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions