Tutorials
Long-running services
Run services with readiness, ports, logs, lifecycle, and policy.
Services need more lifecycle structure than one-shot commands.
- Build an image with the service and dependencies.
- Declare the service command as the entrypoint.
- Declare ports explicitly.
- Add readiness checks where supported.
- Use
mvmctl machine logs,mvmctl machine wait, andmvmctl machine boot-reportfor diagnostics.
mvmctl machine run --manifest ./mvm.toml --name api-dev --port 8080:8080mvmctl machine wait api-dev --for allmvmctl machine logs api-dev -fSecurity notes
Section titled βSecurity notesβ- Bind only the ports the caller needs.
- Keep egress policy separate from inbound port exposure.
- Use cold mode only when preserving service state is intentional.
- Make stop/destroy semantics explicit in SDK examples.