$docker-compose -f ~/docker-codeception-run/docker-compose.yml up -d
will rewrite existing output by produced output
Thanks for the report!
what version of compose?
this happens after update to https://github.com/docker/compose/releases/tag/1.19.0-rc2 (from docker-compose version: 1.11.2).
docker-compose version 1.19.0-rc3, build cdd0282
pacman still alive!
Ha, yeah. Just wanted to search if an issue about this already exists. +1
Even if it's just cosmetic, it is driving me crazy! (only happens on up command)
@Greek64 Ya, I thought it was really weird that up & down have different behavior. It seems they should be using the same code paths, and honestly that's probably the fix.
So... I try to detect commit (I am not a python programmer)
The eater was called between versions 1.17.0 and 1.18.0 (see half check) but error is older: after add colors (and status) the docker-compose up
process draw 2 line.
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 749 0 --:--:-- --:--:-- --:--:-- 749
100 8066k 100 8066k 0 0 1583k 0 0:00:05 0:00:05 --:--:-- 2050k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Removing network dockercodeceptionrun_default
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating network "dockercodeceptionrun_default" with the default driver
Creating dockercodeceptionrun_db_1
Creating dockercodeceptionrun_browser_1
Creating dockercodeceptionrun_php_1
Creating dockercodeceptionrun_nginx_1
Creating dockercodeceptionrun_codecept_1
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 799 0 --:--:-- --:--:-- --:--:-- 798
100 8650k 100 8650k 0 0 1757k 0 0:00:04 0:00:04 --:--:-- 2261k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Removing network dockercodeceptionrun_default
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating network "dockercodeceptionrun_default" with the default driver
Creating dockercodeceptionrun_db_1 ...
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_db_1
Creating dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_php_1 ...
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_codecept_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Removing network dockercodeceptionrun_default
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating network "dockercodeceptionrun_default" with the default driver
Creating dockercodeceptionrun_db_1 ...
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_db_1
Creating dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_php_1 ...
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_codecept_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 665 0 --:--:-- --:--:-- --:--:-- 664
100 8649k 100 8649k 0 0 2010k 0 0:00:04 0:00:04 --:--:-- 2705k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Removing network dockercodeceptionrun_default
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating network "dockercodeceptionrun_default" with the default driver
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_db_1 ...
Creating dockercodeceptionrun_db_1
Creating dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_php_1 ...
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_codecept_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 793 0 --:--:-- --:--:-- --:--:-- 793
100 8280k 100 8280k 0 0 1619k 0 0:00:05 0:00:05 --:--:-- 2225k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_db_1 ... done
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_browser_1 ... done
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
upd: 1.17.1
< eater
< 1.18.0-rc1
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.17.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 801 0 --:--:-- --:--:-- --:--:-- 801
100 8649k 100 8649k 0 0 1907k 0 0:00:04 0:00:04 --:--:-- 2751k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Removing network dockercodeceptionrun_default
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating network "dockercodeceptionrun_default" with the default driver
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_db_1 ...
Creating dockercodeceptionrun_db_1
Creating dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_php_1 ...
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_codecept_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
dev@dev-Aspire-V3-772:~$ curl -L https://github.com/docker/compose/releases/download/1.18.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 819 0 --:--:-- --:--:-- --:--:-- 819
100 8280k 100 8280k 0 0 2022k 0 0:00:04 0:00:04 --:--:-- 3027k
dev@dev-Aspire-V3-772:~$ chmod +x /usr/local/bin/docker-compose
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml down
Stopping dockercodeceptionrun_nginx_1 ... done
Stopping dockercodeceptionrun_php_1 ... done
Stopping dockercodeceptionrun_browser_1 ... done
Stopping dockercodeceptionrun_db_1 ... done
Removing dockercodeceptionrun_codecept_1 ... done
Removing dockercodeceptionrun_nginx_1 ... done
Removing dockercodeceptionrun_php_1 ... done
Removing dockercodeceptionrun_browser_1 ... done
Removing dockercodeceptionrun_db_1 ... done
Creating dockercodeceptionrun_db_1 ... done
dev@dev-Aspire-V3-772:~$ docker-compose -f ~/projects/docker-yii2-app-advanced/docker-codeception-run/docker-compose.yml up -d
Creating dockercodeceptionrun_php_1 ... done
Creating dockercodeceptionrun_browser_1 ...
Creating dockercodeceptionrun_nginx_1 ... done
Creating dockercodeceptionrun_php_1 ...
Creating dockercodeceptionrun_nginx_1 ...
Creating dockercodeceptionrun_codecept_1 ... done
I think this lines is a source of error (list of parent_objects is incorrect may be)
https://github.com/docker/compose/commit/6dfd4693548520b3ca4d1fb284984d9781433fc5#diff-cc0bdcabec52683536cc42d4d0e7ac49R40
see
https://github.com/docker/compose/blob/6dfd4693548520b3ca4d1fb284984d9781433fc5/compose/parallel.py#L41-L47
https://github.com/docker/compose/commit/6dfd4693548520b3ca4d1fb284984d9781433fc5#diff-db70ffd20201b81c947f72fea35551d2R398
https://github.com/docker/compose/commit/6dfd4693548520b3ca4d1fb284984d9781433fc5#diff-c8c735e30c07f4c7494904b4570d1541R464
https://github.com/docker/compose/commit/6dfd4693548520b3ca4d1fb284984d9781433fc5#diff-c8c735e30c07f4c7494904b4570d1541R453
https://github.com/docker/compose/commit/6dfd4693548520b3ca4d1fb284984d9781433fc5#diff-c8c735e30c07f4c7494904b4570d1541R194
also in fresh commit
may be
another code
https://github.com/docker/compose/blob/e71664385756a75f4cb14c9447138ac3c4120f3a/compose/parallel.py#L57
@shin- Any progress on this?
Fixed in #5735
I try it now with fresh tag (I can see fix in commits list https://github.com/docker/compose/compare/1.20.0-rc1...master)
Error still alive.
@shin- @mnottale
I can see some like array indexed by service names (with count of copy)
scale = scale_override[service.name]
this array all times is equals to self (first time - print "..."; second time - print "done")?
Ok I figured out what's going wrong thanks to your sample compose file. Fix is underway.
@mnottale What is the issue?
The current code assumes that all log lines are displayed when computing the offset to move to, but this is not the case when there are dependencies between services.
+1
Most helpful comment
Ok I figured out what's going wrong thanks to your sample compose file. Fix is underway.