Software⏱️ 2 min read📅 2026-05-31

How to Fix: Docker on Windows 10 "driver failed programming external connectivity on endpoint"

Docker on Windows 10 error message: driver failed programming external connectivity on endpoint

Quick Answer: Try using a different port, such as 8081 or 8082, to resolve the issue.

The error message you're encountering when trying to start a Docker container on Windows 10 is typically caused by a problem with the network connectivity or port configuration.

🔍 Why This Happens

  • When you run a Docker container, it tries to map a port on the host machine to a port inside the container. If the port is already in use or not configured correctly, Docker fails to establish the connection.

🔧 Proven Troubleshooting Steps

Method 1: Port Mapping with Docker Compose

  1. Step 1: Open your terminal and navigate to the directory where your `docker-compose.yml` file is located.

Method 2: Exposing Ports in Dockerfile

  1. Step 1: Open your terminal and navigate to the directory where your `Dockerfile` is located.

🎯 Final Words

To resolve this issue, you can try one of the following methods:
1. Use a different port in your `docker-compose.yml` file or Dockerfile. For example, change `` to `<8080>` in your `docker-compose.yml`.
2. Run the container with the `-p` flag to specify the host port. For example, run `` instead of ``. By following these steps, you should be able to resolve the error and successfully start your Docker container.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions