Skip to content

Subo should support systems with docker compose (v2) #344

@flaki

Description

@flaki

I installed Docker from the repository on Ubuntu, side-stepping Docker Desktop, and so I only have docker-compose-plugin which is the new docker compose (note the space).

The docker compose (with a space) is a newer project to migrate compose to Go with the rest of the docker project. This is the v2 branch of the docker/compose repo. It's been first introduced to Docker Desktop users, so docker users on Linux didn't see the command. In addition to migrating to Go, it uses the compose-spec, and part of the rewrite may result in behavior differences.

Apparently this is the way of the future, and subo compute deploy core --local currently fails with an error, not being able to find the old docker-compose command:

⏩ START: preparing deployment
ℹ️  using cached environment token
✅ DONE: ready to start installation
⏩ START: installing...
sh: 1: docker-compose: not found
Error: 🚫 failed to docker-compose up: failed to Run command: exit status 127
Usage:
  subo compute deploy core [flags]

Because alias-es don't work with subo, one actually needs to create a shell shim that re-maps docker-compose to docker compose (and that works because up is the same in both CLI-s), but this is a hassle and is undocumented, so we should at least document it, but it would be better fixing it in subo itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions