Docker Community Forums

Share and learn in the Docker community.

Docker Compose Errno 111


(Mitchellbwade) #1

I am having trouble with docker-compose and writing a docker-compose.yml file. I have built three containers for my server, client1, and client2; however, I get Errno 111 failure to connect when I run docker-compose up.

Here are my Dockerfiles:

FROM Python:3.6
WORKDIR /server
COPY requirements.txt /server
RUN pip install -r requirements.txt
COPY server.py /server
CMD python server.py

Replace /server with /client1 and /client2 for my other builds.

The docker-compose.yml file:

version: “2”
services:
  server:
    build: ./server
    links:
      client1
      client2
    ports:
      - “5000:5000”

  client1:
    build: ./client1

  client2:
    build: ./client2