Prerequisites
- Lightd daemon running
- Docker installed and running
- API token (see Authentication)
Common Workflow
This guide walks through creating a complete container setup from scratch.1. Create a Volume
Volumes provide persistent storage for your containers.2. Write Files to Volume
Add configuration files or scripts to your volume.3. Add Network Port (Optional)
If your container needs network access, add ports to the pool.4. Create Container
Create a container with your volume and configuration.5. Monitor via WebSocket
Connect to the WebSocket to monitor installation progress and container output.6. Start Container
Once the container state isready, start it.
Complete Example Script
Here’s a complete bash script that sets up a Minecraft server:Next Steps
Volumes API
Learn about file operations and compression
Containers API
Explore container lifecycle management
WebSocket API
Real-time monitoring and control
Response Examples
See all API response formats