Running docker-compose up does not ignore the replicas option, even though the documentation says it should.
Output of docker-compose version
docker-compose version 1.27.0, build unknown
Output of docker version
Docker version 19.03.12-ce, build 48a66213fe
Output of docker-compose config
services:
app:
deploy:
replicas: 5
image: hello-world
version: '3'
compose-bugversion: "3"
services:
app:
image: hello-world
deploy:
replicas: 5
docker-compose upFive containers are started:
Creating network "compose-bug_default" with the default driver
Creating compose-bug_app_1 ... done
Creating compose-bug_app_2 ... done
Creating compose-bug_app_3 ... done
Creating compose-bug_app_4 ... done
Creating compose-bug_app_5 ... done
Attaching to compose-bug_app_1, compose-bug_app_3, compose-bug_app_5, compose-bug_app_2, compose-bug_app_4
...
Only one container should be started.
Output of uname -s -r -v -o (kernel-name/release/version and operating system):
Linux 5.8.7-arch1-1 #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 GNU/Linux
Docker and docker-compose is installed from Arch Linux's offical repositories.
Hello @MTBorg, thanks for the report. Actually that's normal, since we've removed the compatibility flag.
Actually that's a "documentation" issue. We will update that ASAP. This is included in the merge of 2.x and 3.x compose formats.
Most helpful comment
Hello @MTBorg, thanks for the report. Actually that's normal, since we've removed the
compatibilityflag.Actually that's a "documentation" issue. We will update that ASAP. This is included in the merge of 2.x and 3.x compose formats.