The docker.io apt package doesn't ship the compose plugin, and the npm docker-compose package is an unrelated legacy tool that doesn't provide the 'docker compose' CLI subcommand. Install the official compose v2 binary as a docker CLI plugin instead.