# Helpful macOS Container Tool Commands

> Posted: 2026-06-13 · Updated: 2026-06-13 · Tags: macos, containers, apple, cli
>
> A few container tool commands I keep reaching for, written down for the next teammate who asks how.


I've been living in [Apple's container tool]({{< ref "2026-06-12_MacOS-Container-Tool" >}}) for the last few days. A handful of commands come up a lot, and other team members have asked how, so I'm writing them down. Here are the three I reach for most.

- `container machine run --root` runs your default machine as root.
- `usermod -aG sudo $user` adds your user to the sudoers group once you're root (install `sudo` first).
- `container machine logs` shows the logs for your default machine.


---

Source: https://houdeshell.dev/post/2026-06-13_helpful-container-commands/
