Skip to content
Edith

Docs

Command reference

ed machines docker compose logs

Streams the logs of every container in a compose project.

Output
ed machines docker compose logs [--tail <n>] [--follow] [--json] <machine> <project>

Arguments

Name Type / values Default What it does
<machine> machine name, ssh alias, id, or any unambiguous prefix required Which machine to ask.
<project> compose project name, exactly as compose ls prints it required Whose logs to stream.

Options

Name Type / values Default What it does
--tail integer, 0 or more 200 How many trailing lines to show, per service.
--follow, -f flag off Keep streaming until interrupted.
--json flag off Capture the bounded log and print one JSON document. Cannot be combined with --follow.
--help, -h flag off Print the help for this command on stdout and exit 0.

Unlike ed machines docker logs there are no timestamps: compose prefixes each line with the service name instead. --json waits for that bounded log, then prints {"machine","project","lines"}.

Examples

Output
ed machines devbox docker compose logs noveum-local-dbed machines devbox docker compose logs noveum-local-db --tail 20ed machines devbox docker compose logs noveum-local-db --tail 0 --follow

Behaviour notes

The remote command is docker compose -p <project> logs --tail <n> [-f], after the same project check the other compose verbs make, so an unlisted project exits 3 before anything streams. --tail is validated first and a negative value exits 2.

Without --json this is a passthrough: stdout and stderr stay separate, there is no timeout, and the remote exit code becomes yours. --json cannot follow, and a remote failure on that path exits 1.

Where to go next