Broken Yii3 Docker installation on Ubuntu?

Hi. I tried to install Yii3 through Docker on desktop Ubuntu 24.04 LTS and on the latest 25.10, with “docker.io” and “make” installed from the repositories. I was following the documentation:

docker run --rm -it -v "$(pwd):/app" --user $(id -u):$(id -g) composer/composer create-project yiisoft/app yii3-docker
sudo chown -R $(id -u):$(id -g) yii3-docker
cd yii3-docker

Then I tried to run it:

make up

And I got an error:

docker compose -f docker/compose.yml -f docker/dev/compose.yml up -d --remove-orphans
unknown shorthand flag: 'f' in -f

Usage: docker [OPTIONS] COMMAND [ARG...]

Run 'docker --help' for more information
make: *** [Makefile:36: up] Error 125

Is it a bug or am I doing something wrong?