A
A
Artem Gribkov2016-11-12 13:46:19
Docker
Artem Gribkov, 2016-11-12 13:46:19

Why can docker-compose hang?

macOS 10.12
docker 1.12.3
docker-compose 1.8.1
When launching containers via docker-compose, for some reason, nothing happens and you can't even end docker-compose via "ctrl + c", the process seems to be frozen, only docker-compose is cut down via "kill -9".
True, this does not always happen, sometimes docker-compose starts adequately, I can’t understand what is the reason, tell me where to dig?
Here is my docker-compose.yml:

mysql:
  image: mysql:5.7
  environment:
    MYSQL_ROOT_PASSWORD: root
  volumes:
    - ./docker/mysql:/var/lib/mysql

quintle:
  image: quintle
  ports:
    - "80:80"
  volumes:
    - ./src:/var/www/html
    - ./docker/config/000-default.conf:/etc/apache2/sites-available/000-default.conf
  links:
    - mysql:mysql

The quintle image was built from this Dockerfile:
FROM php:7.0-apache

RUN apt-get update
RUN apt-get install -y nano
RUN a2enmod rewrite
RUN service apache2 restart

EXPOSE 80

COPY /src/ /var/www/html/

UPD:
I left it for 10 minutes, I didn’t cut it down with my hands, as a result, docker-compose up started the containers, but sooooo long

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ILYA, 2017-06-10
@iliacmd

There is such a problem https://github.com/docker/compose/issues/3419
1. Turn off the Internet at the time of launch
2. Install Exclude simple hostnames
3650750d12574160a93d5baa504094a7.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question