Docker: unknown flag: –profile

DeepSeek

Today I faced the issue while trying to run docker compose. The docker siad that have no clue about “–profile” option…

The command that I executed and error

$ docker compose --profile download up --build
unknown flag: --profile
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

To fix this you need to update your docker compose to version 2

$ sudo apt install docker-compose-v2

After this the problem will be resolved

You May Also Like

About the Author: vo