Blank "attaching to" when up'ing containers w/ docker-compose
Description of problem: When I perform a docker-compose up I see very little useful info, and logs never flow. This is different than from previous versions.
docker version
Client:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Thu Sep 10 19:19:00 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.2
API version: 1.20
Go version: go1.4.2
Git commit: 0a8c2e3
Built: Thu Sep 10 19:19:00 UTC 2015
OS/Arch: linux/amd64
docker-compose version
docker-compose version: 1.4.1
docker-py version: 1.3.1
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
docker-compose up
Starting somining_db_1...
Starting somining_redis_1...
Starting somining_web_1...
Attaching to
Just waiting and do/log nothing. But application/docker running normaly.
Same issue opened there (https://github.com/docker/docker/issues/16397) by @ryanbaldwin and dublicated here by me.
Same here.
Confirming same behaviour for all composed containers after the upgrade to 1.4.1
docker-compose version: 1.4.1
docker-py version: 1.3.1
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
This was fixed by #1965 which should have been in 1.4.1 (but wasn't).
OH NOES
Is there a known workaround or cause for this issue? Something I can do to fix it locally until we wait for a release?
@maxpollack , downgrade docker-compose to 1.3.0 with this commands, :disappointed:
sudo sh -c "curl -kL https://github.com/docker/compose/releases/download/1.3.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
You can apply the patch from https://patch-diff.githubusercontent.com/raw/docker/compose/pull/1965.patch and script/build-linux.
Otherwise there should be a new release out next week.
+1
Thank you very much!
@salihozd Actually 1.4.0 worked just fine for me.
@salihozd yes, 1.4.0 worked fine.
@jmagnusson @brunowego okay then, thanks for information. i am fine with 1.3.0 for now. just waiting for new release with fix.
1.4.0 is fine.. Who will fix this nasty regression?
It's already fixed, it just needs a release. I'll prepare one today
@dnephin wonderfull, thanks!
https://github.com/docker/compose/releases/tag/1.4.2
It works! Thanks and congrats @dnephin for 1.4.2!
thank you @dnephin
While the blank "Attaching to" is fixed in 1.4.2, there is still weirdness involving the output of docker-compose up in the new version. I'm seeing a mix of stale/fresh stdout output after killing with Ctrl-C and running docker-compose up again. This was not happening in 1.3.3.
@pandeiro I think what you might be seeing is that in 1.4.x we made docker-compose up --x-smart-recreate the default behaviour. Containers are no longer recreated by default, only when the configuration of the container changes. So the logs for the old container will still be in the output.
If you docker-compose rm or use --force-recreate I think you'll see the old behaviour.