I'm following this guide in order to deploy a docker-compose application in Azure, and the command
docker compose up
is not found in Azure Container Instances (ACI).
I get the following error:
docker: 'compose' is not a docker command. See 'docker --help'
However I switched the context before with:
docker context use "azuremycontext"
Moreover, I cannot execute the command
docker context create aci azuremycontext
Docker doesn't have this option in my Linux. What am I missing here? I guess it is not linked just to ACI, but rather docker-compose itself?
the command is "docker-compose", not "docker compose".
So i found the solution and would like to share it:
You have to install the docker aci integration in order to use "docker compose" and "docker create context aci [contextname]". You can install it as follows:
Taken from 'compose' is not a docker command` when installing using convenience scripts · Issue #8630, this shows the most voted and also most recent answer at the time of writing (08/2022).
If your docker-compose version does not yet support "docker compose" without a dash in between, you can get the alias "docker compose" for "docker-compose" by installing a plugin.
If you see:
You need to:
Check the plugin for example with: