docker-compose up stuck
hadifarnoud opened this issue · comments
front_1 | /usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
front_1 | 'Supervisord is running as root and it is searching '
front_1 | 2015-12-31 12:17:17,858 CRIT Supervisor running as root (no user in config file)
front_1 | 2015-12-31 12:17:17,859 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
front_1 | 2015-12-31 12:17:17,904 INFO RPC interface 'supervisor' initialized
front_1 | 2015-12-31 12:17:17,904 CRIT Server 'unix_http_server' running without any HTTP authentication checking
front_1 | 2015-12-31 12:17:17,905 INFO supervisord started with pid 1
front_1 | 2015-12-31 12:17:18,912 INFO spawned: 'nginx' with pid 8
front_1 | 2015-12-31 12:17:18,924 INFO spawned: 'hhvm-fastcgi' with pid 9
front_1 | 2015-12-31 12:17:18,935 INFO spawned: 'php5-fpm' with pid 10
front_1 | 2015-12-31 12:17:20,433 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1 | 2015-12-31 12:17:20,433 INFO success: hhvm-fastcgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1 | 2015-12-31 12:17:20,433 INFO success: php5-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
compose is stuck here for a while. tried a few times.
I can confirm the server is running. why is it stuck though? is this expected behaviour?
It's not stuck; it's running as a foreground process. You may want to use -d
.
-d
helped. my issue is these containers are running a process and I cannot attach to phpdockerized_front_1
for example and do a nginx -s reload
your readme is a bit short for docker beginners imho
UPDATE: Solution is to attach to new TTY docker exec -it [container-id] bash
Great! The README is intentionally short as I don't want to repeat what can already be found in the Docker/Compose docs.