Compose command compatibility with docker-compose
Estimated reading time: 2 minutes
The compose command in the Docker CLI supports most of the docker-compose commands and flags. It is expected to be a drop-in replacement for docker-compose. There are a few remaining flags that have yet to be implemented, and we are prioritizing these implementations based on usage metrics and user feedback.
You can follow progress on the implementation of the remaining commands and flags in the Compose-CLI GitHub repository.
If you see some Compose functionality that is not available in the compose command, create an issue in the Compose-CLI GitHub repository so we can prioritize it.
Commands or flags not yet implemented
The following commands have not been implemented yet, and maybe implemented at a later time. Let us know if these commands are a higher priority for your usecases.
compose build --memorycompose build --no-cachecompose config --no-interpolatecompose config --servicescompose config --volumescompose config --hashcompose imagescompose portcompose pull --ignore-pull-failurescompose push --ignore-push-failures
Flags that will not be implemented
The list below includes the flags that we are not planning to support in Compose in the Docker CLI,
either because they are already deprecated in docker-compose, or because they are not relevant for Compose in the Docker CLI.
compose build --compressNot relevant as the ‘compose’ command uses buildkit by default.compose build --force-rmNot relevant as commpose command is using buildkit by default.compose build --no-rmNot relevant as commpose command is using buildkit by default.compose build --parallelNot relevant as commpose command is using buildkit by default.compose ps --filter KEY-VALUENot relevant due to its complicated usage with theservicecommand and also because it is not documented properly indocker-compose.compose pull --parallelDeprecated in docker-composecompose pull --no-parallelDeprecated in docker-composecompose rm --allDeprecated in docker-compose.compose scaleDeprecated in docker-compose (usecompose up --scaleinstead)
Global flags:
compose --no-ansiDeprecated in docker-compose.compose --compatibilityDeprecated in docker-compose.