microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
385 stars 246 forks source link

BC Containers unreachable after installing Hyper-V on Server 2109 #2244

Closed steveendow closed 2 years ago

steveendow commented 2 years ago

I have a Server 2019 ltsc (v1809 Build 17763.2029) machine that has been running Docker EE (Mirantis Container Runtime version 20.10.7) without issue for months.

I had to install Hyper-V to host some Windows VMs on the server, and now I am unable to connect to any BC Docker containers.

The BC containers are successfully created without any obvious errors, and they have IP address & host name entries in the hosts file, but I can't ping the container IP or connect to the container in a browser anymore using either the host name or IP address over HTTP. (I'm not using https with BC containers)

I am able to run this command which returns JSON data:

Get-BcContainerDebugInfo -containerName bcdev

And I am also able to run this command to get a PowerShell prompt for the container:

Enter-BcContainer -containerName bcdev

And this command does successfully export a Windows Event Log file from the container:

Get-BcContainerEventLog -containerName bcdev

When I run netstat -an, I am seeing the failed connection attempts to the container IP (172.20.143.95) with SYN_SENT status.

image

Did installing Hyper-V break Docker networking? Or could I have broken Docker networking when I figured a new virtual switch for my Hyper-V hosts?

Or is there something else in Docker that doesn't play well with Hyper-V on the same host?

Scripts used to create container and cause the issue

    New-BcContainer `
        -accept_eula `
        -containerName $containerName `
        -credential $credential `
        -auth $auth `
        -artifactUrl $artifactUrl `
        -dns $dnsIP `
        -updateHosts `
        -licenseFile "D:\BCPowerShell\BCLicense\BC 19 License.flf" `
        -assignPremiumPlan `
        -includeTestToolkit `
        -includeAL `
        -shortcuts None `
        -imageName $imageName

Full output of scripts

PS C:\Windows\system32\drivers\etc> D:\BCPowerShell\New BC Dev Container v4.ps1
Transcript started, output file is D:\BCPowerShell\Logs\2021-12-22 0848 bcdev Container Build Log.txt
DOCKER2019: 12/22/21 BC Build Log for Container: bcdev
Start time: 12/22/2021 08:48:37
Get-BcContainerAppInfo Telemetry Correlation Id: d3a8e0ad-e50b-4493-95cd-039b38f17741
BcContainerHelper version 3.0.0
BcContainerHelper emits usage statistics telemetry to Microsoft
WARNING: The names of some imported commands from the module 'BcContainerHelper' include unapproved verbs that might make them less discover
able. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved ver
bs, type Get-Verb.
Untagged: ibcdev:sandbox-19.1.31886.34078-us-mt
Deleted: sha256:2ccefdf23b8a87b70a52c01c0ef8338a14051da427d8650f771317fcc0433c58
Deleted: sha256:513438666634e36ccd1a5ee9c4193066ca68fd0dd2cd91a0325cdf17d81c4e86
Deleted: sha256:e6e48cd358a7fc9aed9af4bbfee86f2026567e6e6134638f4189a3e609580a3b
Deleted: sha256:eeac9c64dcb44b64a9452968c9a1b7deb60c24f378a0490f0b0aa06a01a1ed27
Deleted: sha256:04c0e616d08bcf800a75a4eeb8db203d2b0cab1fae11d189ce1c80d077b9544e
Deleted: sha256:3ad49e5f94cad427a43ec9b8ecc5398efdd90d64d02d4bc1dd3d2e0a812b24ee
Deleted: sha256:4ece891826d3545d2934c1fdd54ab11efe5e01c0c5fdaee2033f2a09451ff7b4
Deleted: sha256:8615fe7f4ad08137b32136770f2763b1e93f44d45f5387a73ee400f919026ae4
Deleted: sha256:0061a68604f6486cbcb641dd5c13a6e4782723802860d6fbfcb03323dfb7314f
Deleted: sha256:7dfb0d99c2ee3694caf4d00b1ce615fe6654c7353c7ba080c86a9d116d4cafcd
BcContainerHelper is version 3.0.0
BcContainerHelper is running as administrator
Host is Microsoft Windows Server 2019 Standard - ltsc2019
Docker Client Version is 20.10.7
Docker Server Version is 20.10.7
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
Building multitenant image ibcdev:sandbox-19.1.31886.34078-us-mt based on mcr.microsoft.com/businesscentral:10.0.17763.2029 with https://bca
rtifacts.azureedge.net/sandbox/19.1.31886.34078/us
Pulling latest image mcr.microsoft.com/businesscentral:10.0.17763.2029
10.0.17763.2029: Pulling from businesscentral
Digest: sha256:20e6af207614df36e837d16919f620ae2701fc349cf05489ebf6c6311cbbff6d
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.17763.2029
mcr.microsoft.com/businesscentral:10.0.17763.2029
Generic Tag: 1.0.1.7
Container OS Version: 10.0.17763.2029 (ltsc2019)
Host OS Version: 10.0.17763.2029 (ltsc2019)
Using process isolation
Using license file D:\BCPowerShell\BCLicense\BD BC 19 ISV License.flf
Files in c:\bcartifacts.cache\hf445d3b.atm\my:
Copying Platform Artifacts
c:\bcartifacts.cache\sandbox\19.1.31886.34078\platform
Copying Database
Copying Licensefile
Copying ConfigurationPackages
C:\bcartifacts.cache\sandbox\19.1.31886.34078\us\ConfigurationPackages
Copying Extensions
C:\bcartifacts.cache\sandbox\19.1.31886.34078\us\Extensions
Copying Applications.US
C:\bcartifacts.cache\sandbox\19.1.31886.34078\us\Applications.US
c:\bcartifacts.cache\hf445d3b.atm
Sending build context to Docker daemon  2.054GB

Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.17763.2029
 ---> c6f9f29fbbbe
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azuree
dge.net/sandbox/19.1.31886.34078/us filesOnly=False
 ---> Running in a1e4c38718f3
Removing intermediate container a1e4c38718f3
 ---> cfc1645c6aff
Step 3/6 : COPY my /run/
 ---> 264f692c9d88
Step 4/6 : COPY NAVDVD /NAVDVD/
 ---> dfcafcf0f045
Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit
 ---> Running in 7c13729a591a
Using installer from C:\Run\150-new
Installing Business Central
Installing from DVD
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Client Files
C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
C:\NAVDVD\LegacyDlls\systemFolder
Copying ModernDev Files
C:\NAVDVD
C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\NAVDVD\ConfigurationPackages
Copying Test Assemblies
C:\NAVDVD\Test Assemblies
Copying Extensions
C:\NAVDVD\Extensions
Copying Applications
C:\NAVDVD\Applications
Copying Applications.US
C:\NAVDVD\Applications.US
Starting Business Central Service Tier
Importing CRONUS license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Any is already published
Synchronizing Any
Installing Any
Library Assert is already published
Synchronizing Library Assert
Installing Library Assert
Permissions Mock is already published
Synchronizing Permissions Mock
Installing Permissions Mock
Library Variable Storage is already published
Synchronizing Library Variable Storage
Installing Library Variable Storage
Test Runner is already published
Synchronizing Test Runner
Installing Test Runner
Publishing C:\Applications.US\Microsoft_System Application Test Library_19.1.31886.34078.app
Synchronizing System Application Test Library
Installing System Application Test Library
Publishing C:\Applications.US\Microsoft_Tests-TestLibraries_19.1.31886.34078.app
Synchronizing Tests-TestLibraries
Installing Tests-TestLibraries
Publishing C:\Applications.US\Microsoft_Tests-Bank_19.1.31886.34078.app
Synchronizing Tests-Bank
Installing Tests-Bank
Publishing C:\Applications.US\Microsoft_Tests-Cash Flow_19.1.31886.34078.app
Synchronizing Tests-Cash Flow
Installing Tests-Cash Flow
Publishing C:\Applications.US\Microsoft_Tests-Cost Accounting_19.1.31886.34078.app
Synchronizing Tests-Cost Accounting
Installing Tests-Cost Accounting
Publishing C:\Applications.US\Microsoft_Tests-CRM integration_19.1.31886.34078.app
Synchronizing Tests-CRM integration
Installing Tests-CRM integration
Publishing C:\Applications.US\Microsoft_Tests-Data Exchange_19.1.31886.34078.app
Synchronizing Tests-Data Exchange
Installing Tests-Data Exchange
Publishing C:\Applications.US\Microsoft_Tests-Dimension_19.1.31886.34078.app
Synchronizing Tests-Dimension
Installing Tests-Dimension
Publishing C:\Applications.US\Microsoft_Tests-ERM_19.1.31886.34078.app
Synchronizing Tests-ERM
Installing Tests-ERM
Publishing C:\Applications.US\Microsoft_Tests-Fixed Asset_19.1.31886.34078.app
Synchronizing Tests-Fixed Asset
Installing Tests-Fixed Asset
Publishing C:\Applications.US\Microsoft_Tests-General Journal_19.1.31886.34078.app
Synchronizing Tests-General Journal
Installing Tests-General Journal
Publishing C:\Applications.US\Microsoft_Tests-Graph_19.1.31886.34078.app
Synchronizing Tests-Graph
Installing Tests-Graph
Publishing C:\Applications.US\Microsoft_Tests-Integration_19.1.31886.34078.app
Synchronizing Tests-Integration
Installing Tests-Integration
Publishing C:\Applications.US\Microsoft_Tests-Invoicing_19.1.31886.34078.app
Synchronizing Tests-Invoicing
Installing Tests-Invoicing
Publishing C:\Applications.US\Microsoft_Tests-Job_19.1.31886.34078.app
Synchronizing Tests-Job
Installing Tests-Job
Publishing C:\Applications.US\Microsoft_Tests-Local_19.1.31886.34078.app
Synchronizing Tests-Local
Installing Tests-Local
Publishing C:\Applications.US\Microsoft_Tests-Marketing_19.1.31886.34078.app
Synchronizing Tests-Marketing
Installing Tests-Marketing
Publishing C:\Applications.US\Microsoft_Tests-Misc_19.1.31886.34078.app
Synchronizing Tests-Misc
Installing Tests-Misc
Publishing C:\Applications.US\Microsoft_Tests-Monitor Sensitive Fields_19.1.31886.34078.app
Synchronizing Tests-Monitor Sensitive Fields
Installing Tests-Monitor Sensitive Fields
Publishing C:\Applications.US\Microsoft_Tests-Permissions_19.1.31886.34078.app
Synchronizing Tests-Permissions
Installing Tests-Permissions
Publishing C:\Applications.US\Microsoft_Tests-Physical Inventory_19.1.31886.34078.app
Synchronizing Tests-Physical Inventory
Installing Tests-Physical Inventory
Publishing C:\Applications.US\Microsoft_Tests-Prepayment_19.1.31886.34078.app
Synchronizing Tests-Prepayment
Installing Tests-Prepayment
Publishing C:\Applications.US\Microsoft_Tests-Rapid Start_19.1.31886.34078.app
Synchronizing Tests-Rapid Start
Installing Tests-Rapid Start
Publishing C:\Applications.US\Microsoft_Tests-Report_19.1.31886.34078.app
Synchronizing Tests-Report
Installing Tests-Report
Publishing C:\Applications.US\Microsoft_Tests-Resource_19.1.31886.34078.app
Synchronizing Tests-Resource
Installing Tests-Resource
Publishing C:\Applications.US\Microsoft_Tests-Reverse_19.1.31886.34078.app
Synchronizing Tests-Reverse
Installing Tests-Reverse
Publishing C:\Applications.US\Microsoft_Tests-SCM_19.1.31886.34078.app
Synchronizing Tests-SCM
Installing Tests-SCM
Publishing C:\Applications.US\Microsoft_Tests-SMB_19.1.31886.34078.app
Synchronizing Tests-SMB
Installing Tests-SMB
Publishing C:\Applications.US\Microsoft_Tests-SMTP_19.1.31886.34078.app
Synchronizing Tests-SMTP
Installing Tests-SMTP
Publishing C:\Applications.US\Microsoft_Tests-Upgrade_19.1.31886.34078.app
Synchronizing Tests-Upgrade
Installing Tests-Upgrade
Publishing C:\Applications.US\Microsoft_Tests-User_19.1.31886.34078.app
Synchronizing Tests-User
Installing Tests-User
Publishing C:\Applications.US\Microsoft_Tests-VAT_19.1.31886.34078.app
Synchronizing Tests-VAT
Installing Tests-VAT
Publishing C:\Applications.US\Microsoft_Tests-Workflow_19.1.31886.34078.app
Synchronizing Tests-Workflow
Installing Tests-Workflow
Stopping Business Central Service Tier
Installation took 234 seconds
Installation complete
Removing intermediate container 7c13729a591a
 ---> 05d8b060960c
Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202112221649"       nav=""       cu=""       multitena
nt="Y" country="US"       version="19.1.31886.34078"       platform="19.0.31889.34054"
 ---> Running in abbfbc2df667
Removing intermediate container abbfbc2df667
 ---> b12b40fcb098
Successfully built b12b40fcb098
Successfully tagged ibcdev:sandbox-19.1.31886.34078-us-mt
Building image took 334 seconds
Using image ibcdev:sandbox-19.1.31886.34078-us-mt
Creating Container bcdev
Style: sandbox
Multitenant: Yes
Version: 19.1.31886.34078
Platform: 19.0.31889.34054
Generic Tag: 1.0.1.7
Container OS Version: 10.0.17763.2029 (ltsc2019)
Host OS Version: 10.0.17763.2029 (ltsc2019)
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file D:\BCPowerShell\BCLicense\BD BC 19 ISV License.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\bcdev\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcdev from image ibcdev:sandbox-19.1.31886.34078-us-mt
f95db241b67dfb76ab197546c759cee1038fc829adc3fac70676ed25cdac9bce
Waiting for container bcdev to be ready
Initializing...
**Setting host.containerhelper.internal to 172.20.128.1 in container hosts file**
Starting Container
**Hostname is bcdev
PublicDnsName is bcdev
WARNING: DNS resolution not working from within the container.**
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint D5575E95C3EB46090DF30ED99902A4831C269D14
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
Assign Premium plan for ADMIN
**Container IP Address: 172.20.143.95
Container Hostname  : bcdev
Container Dns Name  : bcdev**
Web Client          : http://bcdev/BC/?tenant=default
Dev. Server         : http://bcdev
Dev. ServerInstance : BC
Dev. Server Tenant  : default
**Setting bcdev to 172.20.143.95 in host hosts file
Setting bcdev-default to 172.20.143.95 in host hosts file
Setting bcdev-default to 172.20.143.95 in container hosts file**

Files:
http://bcdev:8080/ALLanguage.vsix

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

Container Total Physical Memory is 63.9Gb
Container Free Physical Memory is 54.5Gb

Initialization took 121 seconds
Ready for connections!
Reading CustomSettings.config from bcdev
Skipping app 'C:\Applications.US\Microsoft_Permissions Mock_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Test Runner_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Any_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Library Assert_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Permissions Mock_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Library Variable Storage_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_System Application Test Library_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-TestLibraries_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Bank_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Cash Flow_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Cost Accounting_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-CRM integration_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Data Exchange_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Dimension_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-ERM_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Fixed Asset_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-General Journal_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Graph_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Integration_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Invoicing_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Job_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Local_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Marketing_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Misc_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Monitor Sensitive Fields_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Permissions_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Physical Inventory_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Prepayment_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Rapid Start_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Report_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Resource_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Reverse_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-SCM_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-SMB_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-SMTP_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Upgrade_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-User_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-VAT_19.1.31886.34078.app' as it is already installed
Skipping app 'C:\Applications.US\Microsoft_Tests-Workflow_19.1.31886.34078.app' as it is already installed
TestToolkit successfully imported
Creating .net Assembly Reference Folder for VS Code
Copying DLLs from C:\Windows\assembly to assemblyProbingPath
Copying DLLs from C:\Windows\Microsoft.NET\assembly to assemblyProbingPath
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\190\Service to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Microsoft Dynamics NAV\190\RoleTailored Client to assemblyProbingPath
Copying DLLs from C:\Test Assemblies\Mock Assemblies to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Open XML SDK to assemblyProbingPath
Container bcdev successfully created

Use:
Get-BcContainerEventLog -containerName bcdev to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bcdev to get debug information about the container
Enter-BcContainer -containerName bcdev to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bcdev to remove the container again
docker logs bcdev to retrieve information about URL's again
Container OS Build 2029 matches Host OS Build 2029

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.
End time: 12/22/2021 08:57:05
Elapsed time: 00:08:28
Transcript stopped, output file is D:\BCPowerShell\Logs\2021-12-22 0848 bcdev Container Build Log.txt

Docker Network info:

PS C:\Windows\system32> docker network ls
NETWORK ID     NAME      DRIVER        SCOPE
847cfedbddd1   nat       nat           local
c5d0dbaecfc9   net1      transparent   local
2ab55fc68533   none      null          local
PS C:\Windows\system32> docker network inspect nat
[
    {
        "Name": "nat",
        "Id": "847cfedbddd194c77f2b97c80cd4d23f31c24912fe419278c728f3a087b944a9",
        "Created": "2021-12-20T10:42:08.5552239-08:00",
        "Scope": "local",
        "Driver": "nat",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "windows",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.20.128.0/20",
                    "Gateway": "172.20.128.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "f95db241b67dfb76ab197546c759cee1038fc829adc3fac70676ed25cdac9bce": {
                "Name": "bcdev",
                "EndpointID": "454027ad48e3610b1c272984a60e9b4cf110d08d87a7accdc54cb688d6c128a8",
                "MacAddress": "00:15:5d:6a:7b:1b",
                "IPv4Address": "172.20.143.95/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.windowsshim.hnsid": "19A1D077-9831-4BDF-B7A4-B3541C395250",
            "com.docker.network.windowsshim.networkname": "nat"
        },
        "Labels": {}
    }
]
steveendow commented 2 years ago

RESOLVED:

I realized that I had not rebooted the server since installing Hyper-V.

So I stopped the BC container, rebooted the Windows Server, then restarted the BC container.

I can now connect to the BC container successfully.

Thanks to a suggestion from Sebastian about trying to restart the Docker service:

https://twitter.com/sschuh365/status/1473709943819804676?s=20

My speculation is that the Hyper-V installation modified the Windows Network adapters, which caused the Docker network to stop working. Either restarting Docker or restarting Windows caused Docker to recognize the new network configuration and start working properly.