Syntax error in docker install guide

On this page: https://www.passbolt.com/docs/hosting/install/ce/docker/
Steps 4 and 5 show “docker compose -f” however this syntax is not valid.
It will return error unknown shorthand flag: ‘f’ in -f

Should be hyphenated “docker-compose -f”

Hi qbicdesign,

you are probably using an old version of docker. “docker compose” is the recommended version.
my docker has a shorthand for --file

~ # docker -v
Docker version 28.0.1, build 068a01ea9470df6494cc92d9e64e240805ae47a7
~ # docker compose --help

Usage: docker compose [OPTIONS] COMMAND

-f, --file stringArray Compose configuration files

https://docs.docker.com/compose/releases/migrate/

" What are the differences between Compose V1 and Compose V2?"

Best

1 Like

Hi qbicdesign,

What txt said is true about the new compose being more tightly interated into docker rather than the old docker-compose which was python based.

I only wanted to mention that it might need a configuration change to enable it, depending on how docker is installed.

On macOS while using the Colima container runtime, docker needs the following added to change from docker-compose to docker compose.

$ cat ~/.docker/config.json
{
        "auths": {},
        "currentContext": "colima",
        "cliPluginsExtraDirs": [
                "/opt/homebrew/lib/docker/cli-plugins"
        ]
}

I hope that helps
cheers
gareth