This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Description
expected behaviour
$ docker-compose scale web=2
WARNING: The "web" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
Starting sample_web_1 ... error
Starting sample_web_2 ... done
ERROR: for sample_web_1 failed to create endpoint sample_web_1 on network bridge: Bind for 0.0.0.0:5000 failed: port is already allocated
Actual Behaviour
$ libcompose scale web=2
WARN[0000] Note: This is an experimental alternate implementation of the Compose CLI (https://github.com/docker/compose)
INFO[0000] Setting scale web=2...
WARN[0000] The "web" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
WARN[0000] The mapping "." is ambiguous. In a future version of Docker, it will designate a "named" volume (see https://github.com/docker/docker/pull/14242). To prevent unexpected behaviour, change it to "./.".