Docker on Windows 10 "The driver could not make an external connection on the endpoint"

I try to use $ docker-compose up -dfor a project and get the following error message:

ERROR: for API The Api service cannot be started: the driver was unable to program an external connection on the endpoint Errors were detected when starting the project.

I wonder if this could be a port? I tried port 8080 before. The project was originally created on Mac, and I cloned the repository from gitHub.

+114
source share
9 answers

Windows 10 Pro/Docker v17.06.1-ce-win24/Docker-Compose v1.14.0, Windows Powershell x86 .

Docker.

+249

, Docker . , .

, , , Docker .

+63

Docker Windows 10.

, :

1) "Docker Desktop"

2) :

net stop com.docker.service
net start com.docker.service

3) "Docker Desktop"

, - .

+25

, , docker , ( Docker), :

docker container ls

- :

CONTAINER ID        IMAGE               COMMAND             CREATED
1fa4ab2cf395        friendlyhello       "python app.py"     28 seconds ago

, ( Ctrl + C)

( ), .

docker container stop <CONTAINER_ID>

! .

https://docs.docker.com/get-started/part2/

+7

, - (Nginx) 80, IIS - . IIS

+1

, , - . Mac mac, sudo apachectl stop.

0
  • - . , , . docker ps , , docker ps -a .

, 8e35276e845e. docker rm 8e35276e845e docker rm 8e3 . , 3 . , 8e3 8e35276e845e.

  • , docker-compose.yml apache v- ( ) .

:

    build:
      context: ./apache
      dockerfile: Dockerfile
    working_dir: /var/www/
    volumes:
      - .:/var/www
    networks:
      - app-network
    ports:
      - 8082:80
    depends_on:
      - mysql_db

apache_server:
    build:
      context: ./apache
      dockerfile: Dockerfile
    working_dir: /var/www/
    volumes:
      - .:/var/www
    networks:
      - app-network
    ports:
      - 8083:80
    depends_on:
      - mysql_db

v- ,

( ):

<VirtualHost *:80> 
    ProxyPreserveHost On
    ServerAlias phpadocker.lk
    ProxyPass / http://localhost:8083/
    ProxyPassReverse / http://localhost:8083/
</VirtualHost>

.

0

Windows, , , ( ) Docker . :

  1. .
  2. PowerShell :

    Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory

  3. Docker.

. , .

0

I know that there are already many answers, but none of them solved the problem for me.
Instead, I got rid of this error message by returning the docker to the factory default settings :

enter image description here

0
source

All Articles