Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Container from seperate machine #384

Closed
tawimberly opened this issue Jul 1, 2019 · 5 comments
Closed

Accessing Container from seperate machine #384

tawimberly opened this issue Jul 1, 2019 · 5 comments

Comments

@tawimberly
Copy link

tawimberly commented Jul 1, 2019

I do not believe this is a duplication of issue #252 but rather...an extension of it. i am not sure if this is a bug or i have set something up incorrectly. The below function creates a container successfully...and i can ping the ip as well the hostname. We can connect using our domain users as this is setup using gmsa.

I can connect to this from the Webclient, windows client, and development environment....but not using what NAV THINKS is the correct address.for example, the listing in the "server Instances" of the developer environment will display container.domain.local which never works while trying to run an object. i have to manually remove the .domain.local portion and then it will connect. This also means that if i already have the client running, i can't run an object after making changes without it opening an entirely new instance of the windows client which is the main frustration.

New-NavContainer -containerName $ContainerName -accept_eula -accept_outdated -additionalParameters $additionalParameters -memoryLimit 12g -auth Windows -databaseCredential $databasecredential -databaseInstance $databaseInstance -databaseName $databaseName -databaseServer $databaseServer -doNotExportObjectsToText -imageName microsoft/dynamics-nav:2018-cu4-na -updateHosts -PublicDnsName $dnsName

my Additional parameters are listed below. the $dnsName variable is [containerName].domain.local and i have also tried just using the $ContainerName without domain.local attached to the end.

$additionalParameters = @("--publish 8080:8080", "--publish 443:443", "--publish 7046-7049:7046-7049", "--env publicFileSharePort=8080", "--env PublicDnsName=$dnsName", "--security-opt credentialspec=file://$ContainerName.json", "--network=tlan"

if any information about my network (it's a transparent one i believe) setup is needed please let me know. i followed instructions someone posted in either #252 or similar issue report that i can no longer locate.

@freddydk
Copy link
Contributor

freddydk commented Jul 1, 2019

It would help if you paste the output of new-navcontainer here as well?

@tawimberly
Copy link
Author

tawimberly commented Jul 2, 2019

so sorry this took so long @freddydk ! here is the output you requested

as you can see near the bottom, it's http://githubtest which works flawlessly. however, if i go and look at server instances in the IDE it says
Server Instance ID Server Computer Name Server Port Server Instance Name Service Name Management Port Last Active
2032 githubtest.domain.local 7046 nav nav 7045 07/02/19 10:59 AM

`NavContainerHelper is version 0.6.1.0
Host is Microsoft Windows Server 2019 Standard - ltsc2019
Docker Client Version is 18.09.6
Docker Server Version is 18.09.6
Using image microsoft/dynamics-nav:2018-cu4-na-ltsc2019
Creating Nav container githubtest
Version: 11.0.21441.0-na
Generic Tag: 0.0.9.2
Container OS Version: 10.0.17763.316 (ltsc2019)
Host OS Version: 10.0.17763.529 (ltsc2019)
The container operating system does not match the host operating system, forcing hyperv isolation.
Using hyperv isolation
Creating container githubtest from image microsoft/dynamics-nav:2018-cu4-na-ltsc2019
c89a14b71ddd41491e0909e07713aabf6a8672092258c49b01da7c7eced3eaba
Waiting for container githubtest to be ready
Initializing...
Starting Container
Hostname is githubtest
PublicDnsName is githubtest
Using Windows Authentication
Starting Internet Information Server
Import Encryption Key
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Creating DotNetCore Web Server Instance
Creating http download site
Creating Windows user tawimberly
Registering event sources
Container IP Address: 192.168.22.78
Container Hostname : githubtest
Container Dns Name : githubtest
Web Client : http://githubtest/NAV/
Dev. Server : http://githubtest
Dev. ServerInstance : NAV

Files:
http://githubtest:8080/al-0.12.17720.vsix

WARNING: You are running a container which is 113 days old.
Microsoft recommends that you always run the latest version of our containers.

Initialization took 63 seconds
Ready for connections!
Reading CustomSettings.config from githubtest
Creating Desktop Shortcuts for githubtest
Nav container githubtest successfully created
Name Path
`

@freddydk
Copy link
Contributor

Did you ever manage to make this work?

@tawimberly
Copy link
Author

tawimberly commented Dec 10, 2019 via email

@freddydk
Copy link
Contributor

Assuming it was resolved long ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants