title: Docker-compose attaching container hangs
body: <p>I had no issues building the image or creating the container.</p>
  
  <p>The attachement to the container is the problem, it seems to block and hang forever.</p>
  
  <p>What am I doing wrong ?</p>
  
  <pre><code>Docker-compose :
  version: '3.7'
  services:
      LAMP:
          build: ./Apache
          image : lamp_nzh:1
          container_name: lamp_nzh
          ports:
            - "80:80"
          tty: true
  </code></pre>
  
  <pre><code>Docker File :
  # Environnement Ubuntu
  FROM ubuntu:latest
  
  # Email du maintenair
  MAINTAINER ZHITI Nicolas &lt;nzhiti@gmail.com&gt;
  
  #Environnement 
  ENV DEBIAN_FRONTEND=noninteractive
  ENV TZ=Europe/Berlin
  
  # Mise Ã  jours du systÃ¨me
  RUN apt-get update
  RUN apt-get upgrade -yqq
  # Installation unzip
  RUN apt-get install -yqq zip unzip
  
  # Installation LAMP
  RUN apt-get install -yqq \
      apache2 \
      php \
      libapache2-mod-php \
      mariadb-server \
      php-mysql 
  
  # Installation modules 
  RUN apt-get install php-curl php-gd php-intl php-json php-mbstring php-xml php-zip -yqq
  
  # Port 80 (dans un premier temps)
  EXPOSE 80
  
  #Copies
  COPY ./www/ /var/www/html/
  COPY ./vhosts /etc/apache2/site-available
  </code></pre>
  
  <p><strong>Docker version :</strong> Docker version 18.06.1-ce, build e68fc7a</p>
  
  <p><strong>Docker-compose version :</strong> docker-compose version 1.23.2, build 1110ad01</p>
  
  <p>Edit : here is the docker-compose --verbose up, it seems it's a network issue.</p>
  
  <pre><code>Attaching to lamp_nzh
  compose.cli.verbose_proxy.proxy_callable: docker events &lt;- (filters={'label': ['com.docker.compose.project=webserver', 'com.do                                                                                                               cker.compose.oneoff=False']}, decode=True)
  urllib3.connectionpool._make_request: http://localhost:None "GET /v1.38/events?filters=%7B%22label%22%3A+%5B%22com.docker.comp                                                                                                               ose.project%3Dwebserver%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
  compose.cli.verbose_proxy.proxy_callable: docker events -&gt; &lt;docker.types.daemon.CancellableStream object at 0x7fe8dfd00710&gt;
  </code></pre>