Skip to content

Installation Guide

This guide will help you install Trailer.dev using Docker or pre-built binaries.

Installation Methods

  1. Pull the official image:
bash
docker pull trailerdev/trailer:latest
  1. Run the container:
bash
docker run -d \
  --name trailer \
  -p 8080:8080 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  trailerdev/trailer:latest

Using Pre-built Binaries

  1. Download the latest release for your platform from the GitHub releases page

  2. Move the binary to your PATH:

bash
sudo mv trailer /usr/local/bin/

System Requirements

Hardware Requirements

  • RAM: <100 MB for the container
  • Storage: 30-60 MB for the container
  • Note: Additional resources required based on your ML workloads

Software Requirements

  • Docker 20.10 or later (for container deployment)
  • Linux kernel 5.4 or later
  • NVIDIA drivers 450.80.02 or later (for GPU support)

Configuration

  1. Create a configuration file:
bash
mkdir -p ~/.config/trailer
touch ~/.config/trailer/config.yaml
  1. Add basic configuration:
yaml
server:
  port: 8080
  host: "0.0.0.0"

agent:
  type: "docker"
  max_workspaces: 10

Verification

  1. Check the container status:
bash
docker ps | grep trailer
  1. Verify the service is running:
bash
curl http://localhost:8080/health
  1. Check the logs:
bash
docker logs trailer

Next Steps

Released under the MIT License.