Run your first container¶
Install pVisor and run an Alpine container that prints hello. You don't need
a Docker daemon, a model account, or an API key.
Before you start¶
- Apple Silicon Mac:
uname -smprintsDarwin arm64, andsysctl -n kern.hv_supportprints1. For Linux x86_64, use the container walkthrough instead. - Download tools:
command -v curl tar shasumlists all three. See other installation methods if one is missing. - Network access: The installer downloads from GitHub, and the first run
pulls
alpine:3.20from Docker Hub. Allow room for the image cache.
1. Install the stable CLI¶
This command runs the project's shell installer. To review it first, download
the script without piping it to sh.
Expect an Installed pVisor line. The installer uses your home directory and
doesn't change your shell configuration.
No installation message? Check access to GitHub or see the installation options.
2. Check that pVisor can create a VM¶
Expect "can_create_vm": true and "firmware": "embedded". The check creates
an empty VM; it doesn't boot the container yet.
If either value differs, check the VM prerequisites.
3. Run Alpine and see hello¶
After any image download messages, expect:
That line came from the container. --rm removes the container after it exits;
the downloaded image remains cached. The host pulls the image before the guest
starts with networking disabled.
If the pull fails, check Docker Hub access and disk space. If the image pulls but the VM fails to start, see VM troubleshooting.