Affected versions: Windows Server 2016

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Containers fail to start because endpoint creation on NAT/transparent networks does not complete.

Environment & Reproduction

Seen after firewall, vSwitch, or policy changes impacting Host Network Service.

Get-ContainerNetwork
Get-Service hns

Root Cause Analysis

Stale HNS network objects or conflicting policy artifacts prevent endpoint provisioning.

Quick Triage

Check HNS and docker service health and enumerate existing networks.

Get-Service hns,docker
docker network ls

Step-by-Step Diagnosis

Inspect HNS operational events and stale endpoint remnants.

Get-WinEvent -LogName Microsoft-Windows-Host-Network-Service-Admin -MaxEvents 200
Get-ContainerNetwork | fl *
Illustrative mockup for windows-server-2016 β€” terminal_or_powershell
HNS network state diagnostics β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Restart HNS, remove stale networks, and recreate required container network.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Stop-Service docker
Restart-Service hns
Start-Service docker
docker network prune -f
Illustrative mockup for windows-server-2016 β€” event_or_log_viewer
HNS recovery and network recreation logs β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Recreate the external vSwitch mapping if transparent networking cannot attach to NIC.

Verification & Acceptance Criteria

Container receives expected IP and communicates with required services.

Rollback Plan

Restore prior HNS network JSON backup and revert policy changes if connectivity regresses.

Prevention & Hardening

Apply network policy updates through staged validation on canary container hosts.

Can pair with vEthernet adapter ghost entries and orphaned endpoint GUID conflicts.

Related tutorial: View the step-by-step tutorial for Windows Server 2016.

View all Windows Server 2016 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Microsoft Learn: HNS architecture and Windows container network troubleshooting.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.