Closed moribaleta closed 1 month ago
I have a similar issue:
docker compose -f .buildkite/docker-compose.buildkite.yml -p buildkite01902f5ee1bf44b2b9b7420ae359e365 -f docker-compose.buildkite-109425-override.yml build --pull ...
--
| unknown shorthand flag: 'f' in -f
| See 'docker --help'.
Later in the logs:
Management Commands:
--
| builder Manage builds
| buildx* Docker Buildx (Docker Inc., v0.7.1)
| config Manage Docker configs
| container Manage containers
| context Manage contexts
| image Manage images
| manifest Manage Docker image manifests and manifest lists
| network Manage networks
It looks like docker compose v2 is not accessbile for some reason and docker command does not recognize it.
This is extremely strange and not something I have experienced or seen before. The most likely explanation I can think of is that compose
is not recognized as a valid docker plugin or is corrupt in some way (like when there are shims to pass through compose V1 to V2 plugins).
Could any further information be provided with regards your execution environments? Are you running in AWS using a standard AMI? What version of docker? What version of docker compose? How were they installed? What version of the agent? How was it installed? Was it installed after or before docker? Any steps that are working and these are not? 🤯
Installing the Docker Compose plugin should address this issue.
https://docs.docker.com/compose/install/linux/#install-using-the-repository
In the manual install instructions for Docker Compose here
https://docs.docker.com/compose/install/linux/#install-the-plugin-manually
they give the plugins directory locations. I was getting this same error and I had the docker-compose
binary installed in the path (in /usr/local/lib
) but not in one of the plugins directories.
I put a copy of the docker-compose
binary here /usr/local/lib/docker/cli-plugins/docker-compose
and it's working fine.
Hi Guys Im trying to use 5.2.0 coming from 3.9.0 I'm getting this error on buildkite
any thoughts on whats causing the issue
this is my step in pipeline.yml