⚠️ Linux Prerequisites for Running Keploy Samples with Docker Compose #3458
Closed
Akshat005Chaudhary
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for the clarification! Removing legacy docker-compose and upgrading Buildx resolve the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Keploy samples that use Docker Compose require Docker Compose v2 and a modern Buildx plugin. On Linux systems, older Docker tooling frequently co-exists and causes silent failures. Follow the requirements below to avoid setup issues.
✅ Mandatory Requirements (Linux)
1. Use Docker Compose v2 (not docker-compose v1)
Do NOT use:
Always use:
Why:
docker-compose (v1)is deprecated and end-of-lifeVerify:
docker compose version # version >= v5.0.02. Remove legacy docker-compose if present (important)
If both v1 and v2 exist, Linux will often invoke the wrong client.
Confirm removal:
which docker-compose # (should return nothing)3. Ensure Docker Buildx ≥ 0.17 is installed
Docker Compose v2 delegates all builds to Buildx.
Older Buildx versions cause this error:
Install / upgrade Buildx:
Verify version:
docker buildx version # (Version must be ≥ 0.17)4. Remove old Buildx binaries if version does not update
If
docker buildx versionstill shows an old version (e.g. 0.12.x), an older binary is shadowing the plugin.Remove conflicting binaries:
rm -f ~/.docker/cli-plugins/docker-buildx sudo rm -f /usr/local/lib/docker/cli-plugins/docker-buildxRe-verify:
5. Run the project
Once the above is satisfied:
ℹ️ Notes
version:field indocker-compose.ymlis obsolete for Compose v2 and can be safely removed.✅ Quick Preflight Check (Recommended)
Before running any Keploy Docker-based sample:
All commands must succeed without errors.
Beta Was this translation helpful? Give feedback.
All reactions