Docker New-NavContainer using external SQL server

TallyHo
Member Posts: 417
Hi, I'm experimenting with NAVContainerHelper in Docker.
I'm getting a docker image running of any NAV/BC version build or cu now. That's nice!
But now I'm trying to get it running using a sql server instance and database outside of the container.
I just want to update the parameters in the NAV service to do that, and change the user of the NAV service
inside of the container to a domain user (DOMAIN\USER). The NAV service inside of the container should
be able to login to the database using Windows authorisation the same way I can get a NAV
service running on my docker host machine.
I've used the parameters in the New-NavCointainer to get it going, this isn't working. It doen't accept the
combination DOMAIN\USER. Only USER.
I can ping my sqlserver from inside of the cointainer, so I tried:
Invoke-ScriptInNavContainer -containerName BC-1400 -ScriptBlock{
Set-NAVServerConfiguration -KeyName DatabaseServer -ServerInstance NAV -KeyValue MYSERVER
Set-NAVServerConfiguration -KeyName databaseInstance -ServerInstance NAV -KeyValue MYINSTANCE
Set-NAVServerConfiguration -KeyName databaseName -ServerInstance NAV -KeyValue MYDATABASE
cmd /c sc config 'MicrosoftDynamicsNavServer$NAV' obj= DOMAIN\USER password= ABC123
Restart-NAVServerInstance -ServerInstance NAV
}
This isn't working at all, it doesn't accept the user/password.
I've googled for help, found some, but I'm not a network guy.
Can anybody explain how to solve this in an easy to grasp manner?
You'd be earning infinite gratitude.
I'm getting a docker image running of any NAV/BC version build or cu now. That's nice!
But now I'm trying to get it running using a sql server instance and database outside of the container.
I just want to update the parameters in the NAV service to do that, and change the user of the NAV service
inside of the container to a domain user (DOMAIN\USER). The NAV service inside of the container should
be able to login to the database using Windows authorisation the same way I can get a NAV
service running on my docker host machine.
I've used the parameters in the New-NavCointainer to get it going, this isn't working. It doen't accept the
combination DOMAIN\USER. Only USER.
I can ping my sqlserver from inside of the cointainer, so I tried:
Invoke-ScriptInNavContainer -containerName BC-1400 -ScriptBlock{
Set-NAVServerConfiguration -KeyName DatabaseServer -ServerInstance NAV -KeyValue MYSERVER
Set-NAVServerConfiguration -KeyName databaseInstance -ServerInstance NAV -KeyValue MYINSTANCE
Set-NAVServerConfiguration -KeyName databaseName -ServerInstance NAV -KeyValue MYDATABASE
cmd /c sc config 'MicrosoftDynamicsNavServer$NAV' obj= DOMAIN\USER password= ABC123
Restart-NAVServerInstance -ServerInstance NAV
}
This isn't working at all, it doesn't accept the user/password.
I've googled for help, found some, but I'm not a network guy.
Can anybody explain how to solve this in an easy to grasp manner?
You'd be earning infinite gratitude.
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