compose icon indicating copy to clipboard operation
compose copied to clipboard

Blank "attaching to" when up'ing containers w/ docker-compose

Open salihozd opened this issue 11 years ago • 37 comments

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.

salihozd avatar Sep 18 '15 13:09 salihozd

Same here.

ecylmz avatar Sep 18 '15 13:09 ecylmz

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

27Bslash6 avatar Sep 18 '15 13:09 27Bslash6

This was fixed by #1965 which should have been in 1.4.1 (but wasn't).

dnephin avatar Sep 18 '15 13:09 dnephin

OH NOES

lukemorton avatar Sep 18 '15 15:09 lukemorton

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 avatar Sep 18 '15 17:09 maxpollack

@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

salihozd avatar Sep 18 '15 19:09 salihozd

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.

dnephin avatar Sep 18 '15 19:09 dnephin

+1

brunowego avatar Sep 19 '15 15:09 brunowego

Thank you very much!

maxpollack avatar Sep 19 '15 15:09 maxpollack

@salihozd Actually 1.4.0 worked just fine for me.

jacobsvante avatar Sep 21 '15 09:09 jacobsvante

@salihozd yes, 1.4.0 worked fine.

brunowego avatar Sep 21 '15 11:09 brunowego

@jmagnusson @brunowego okay then, thanks for information. i am fine with 1.3.0 for now. just waiting for new release with fix.

salihozd avatar Sep 21 '15 11:09 salihozd

1.4.0 is fine.. Who will fix this nasty regression?

yomguy avatar Sep 22 '15 09:09 yomguy

It's already fixed, it just needs a release. I'll prepare one today

dnephin avatar Sep 22 '15 13:09 dnephin

@dnephin wonderfull, thanks!

yomguy avatar Sep 22 '15 13:09 yomguy

https://github.com/docker/compose/releases/tag/1.4.2

dnephin avatar Sep 22 '15 18:09 dnephin

It works! Thanks and congrats @dnephin for 1.4.2!

yomguy avatar Sep 22 '15 20:09 yomguy

thank you @dnephin

dimh avatar Sep 23 '15 13:09 dimh

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 avatar Sep 23 '15 19:09 pandeiro

@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.

dnephin avatar Sep 23 '15 19:09 dnephin