Hi
I'm trying to get a docker up and running by use of the 'navcontainerhelper', but it doen't work:-( My script looks like this:
install-module navcontainerhelper -force
Write-NavContainerHelperWelcomeText
help new-navcontainer -detailed
New-NavContainer `
-containerName Nav2018CU2 `
-accept_eula `
-memoryLimit 3G `
-imageName "microsoft/dynamics-nav:2018-cu2-dk"`
-licenseFile "C:\NAV Docker Setup\2018-DK\Udvikler NAV 2018 inkl ISV_011217.flf"`
-IncludeCSide `
-doNotExportObjectsToText `
-enableSymbolLoading Y `
-auth Windows
when running it, I first get prompted for user and password which I guess is just my windows credentials? The script terminates with this error:
Get-Item : Cannot find path 'C:\WINDOWS\system32\Y\setup.exe' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.2.6.5\ContainerHandling\New-NavContainer.ps1:170 char:24
+ ... vversion = (Get-Item -Path (Join-Path $navDvdPath "setup.exe")).Versi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\WINDOWS\system32\Y\setup.exe:String) [Get-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
Any ideas?
0
Answers
(remove the auth parameter and include the Credential parameter)
I haven't tried it with Windows authentication yet. I don't know if there are tips and tricks to it.
You have not supplied a NAV DVD folder as parameter when you run New-NavContainer. I did not use that either. So I have looked up the documentation on this parameter with
-navDvdPath <String>
When you are spinning up a Generic image, you need to specify the NAV DVD path
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-navDvdCountry <String>
When you are spinning up a Generic image, you need to specify the country version (w1, dk, etc.)
Required? false
Position? 4
Default value w1
Accept pipeline input? false
Accept wildcard characters? false
It seems that the script some how ends up using a generic image. Have you pulled the image you want to use?
Has been a while since I've played with this. But I hope this points you in the right direction.
Thx for your answer:-) The last part helped me...sems as my previously downloaded image has disappeared. Adding this line to my script helped me further:
-alwaysPull Y
Just copying the powershell-script supplied from RemkoD at the top with
-imageName "microsoft/dynamics-nav:2018-cu2-dk" `
is working, but I'm not able to log on to neither c/side or windows or web-client??
I would like to use windows-authentication, so I changed the script to:
But again: Getting this error:
Also check https://blogs.msdn.microsoft.com/freddyk/2017/10/29/troubleshooting-nav-on-docker/
I would recommend to get NavUserPassword to work before going for the Windows Authentication
https://github.com/Microsoft/nav-docker/issues/167
This solved my problem:-)