-
-
Notifications
You must be signed in to change notification settings - Fork 1
wip logs
Follows container logs. Compose modes only.
wip logs [-f] [SERVICE...]
| Mode | Available | Services per invocation |
|---|---|---|
container |
✘ | — |
compose-native |
✔ | at most one |
compose |
✔ | as many as your compose tool accepts |
$ wip logs # under mode: container
`wip logs` is only available in compose modeUnder mode: container, use wslc logs directly:
wslc logs -f appwslc logs, like docker logs, follows a single container — there's no multi-service aggregation
the way a real compose tool provides. So:
wip logs # follows compose.service
wip logs worker # follows the "worker" service
wip logs app worker # error`wip logs` under mode: compose-native takes at most one SERVICE (wslc logs, unlike a real
compose tool, only follows one container at a time)
Resulting invocation:
wslc logs [-f] <service>
To watch several at once, run one wip logs per terminal — or use mode: compose,
where the external tool aggregates.
<compose command> -f FILE [-p PROJECT] logs [-f] [SERVICE…]
Every service name you pass is forwarded, so multi-service following works exactly as your compose tool implements it.
On by default. wip logs follows; pass --no-follow to print what's there and exit:
wip logs --no-follow
wip logs --no-follow workerThis is the opposite of docker logs, where following is opt-in — worth remembering if you script
it, since the default will otherwise block forever.
Ctrl-C. wip exits 130.
- Compose Native Mode
- Compose Mode
- Debug Output — for wip's own timing, rather than container output
Introduction
Modes
Configuration
- Configuration Reference
- Config File Discovery
- Dependencies
- Networking
- Interactions
- Restart Policies
- Env Files
- Secret Masking
- Dockerignore
- Shadow Build Context
- Source Sync
- Sync Modes
compose.yml support
- Compose File Support
- Compose Build
- Compose Depends On
- Compose Profiles
- Compose Variable Interpolation
Commands
- CLI Command Reference
- wip init
- wip version
- wip doctor
- wip config
- wip build
- wip up
- wip stop
- wip down
- wip exec
- wip run
- wip shell
- wip logs
- wip sync
- wip dispatch
- Global Options
- Debug Output
- TTY Allocation
Guides
- Guides
- Migrating from dip
- Reusing an Existing compose.yml
- Fixing a Slow Boot
- Continuous Sync
- Auto Restarting Containers
- Multi Arch Images
- Using wip in CI
Troubleshooting
- Troubleshooting & FAQ
- FAQ
- Configuration Errors
- WSLC Not Found
- Registry Authentication
- Architecture Mismatch
- Volume Limit Reached
- rsync Not Found
- Reporting Issues
Comparison
Project