1. Create a Sail account
Sign up at the Sail dashboard and create an API key.2. Set your environment variable
SetSAIL_API_KEY in your shell:
3. Install the Sail SDK
Install the SDK in your project:4. Write code for starting a Sailbox
Create a file namedquickstart.py:
Sailbox.create() starts a persistent Linux VM. exec() runs a shell command
inside it, and wait() returns stdout, stderr, and the process return code.
5. Run your first Sailbox
Run the script:hello world, followed by the contents of the Sailbox root
directory.
Next steps
- Build custom dependencies into the root filesystem with Images.
- Learn runtime file transfer in Filesystem.
- Expose HTTP, raw TCP, and SSH with Networking.
- Checkpoint, fork, pause, and sleep VMs in Lifecycle.