Skip to content
Trailer.devDocumentation

Search is only available in production builds. Try building and previewing the site to test it out locally.

Create Workspace Page

The Create Workspace form with the section navigation sidebar (Workspace settings, Host, Image, Configuration, and so on).

The Create Workspace page deploys a new container from an image onto a host. The form is split into sections, listed in a sidebar so you can jump between them. Most sections stay locked until you pick a host, because the available CPU, memory, GPUs, runtimes, networks, and volumes all come from the selected host.

  • Icon an optional avatar image for the workspace. If not filled it will default to the avatar of the creator.
  • Name required.
  • Description optional free text.
  • Auto start when enabled, the workspace is deployed and started. Disable it to create the workspace without starting it.

Pick the host to deploy on. You only see hosts where you are allowed to create workspaces. Selecting a host shows its live resource metrics and resets the resource sliders, networks, and volumes to that host’s options.

Choose what to run, in one of two modes:

  • Existing pick an image already built in Trailer.
  • OCI reference an external OCI image by name.
  • CPU and Memory requested limits, set with range sliders bounded by the host’s totals.
  • Shared memory size (/dev/shm) size.
  • GPUs shown only when the host reports GPUs.
  • Advanced settings (collapsed): container runtime, hardware acceleration, nested virtualization, nested hypervisor, and an init process toggle. Nested virtualization and nested hypervisor require the host to expose /dev/kvm; they are forced off and the toggles disabled when the host lacks KVM.

Override the container’s startup command and arguments.

Define URLs (scheme, domain, subdomain, port, description) that route external traffic to a workspace port. Each URL can be left open, protected with HTTP basic auth, or restricted to specific Trailer users (internal authentication). The domain you pick also determines how the URL is served (through the agent proxy or through Traefik). See Workspace URLs and routing.

Add name/value pairs. A GUI mode and an advanced bulk-entry mode are available. In GUI mode you can also load variables from an uploaded .env file (up to 50 KB).

The bulk-entry mode is a text editor that accepts the standard .env format, one variable per line:

# comments and empty lines are skipped
DATABASE_URL=postgres://db:5432/app
DEBUG=false

Names must start with a letter or underscore and contain only letters, digits, and underscores. The value is everything after the first =, so values may themselves contain =. Quote characters are stripped from values, and lines that do not fit the format are ignored. Edits made in one mode carry over to the other.

Publish container ports to the host. Each mapping has a protocol (TCP or UDP), an optional host IP, a host port, and the workspace port.

Attach volumes and bind mounts at chosen mount points.

  • You do not have to leave the form to get a new volume: typing a new name into the volume picker creates it when the workspace is saved. This requires permission to create volumes (or bind mounts) on the selected host.
  • After creation, only a volume’s name and description can be edited. Its type, its host, and (for bind mounts) the path on the host are fixed. See Volume Details.
  • The workspace container’s own filesystem is disposable: configuration changes can rebuild the container from its image, discarding everything written inside it. Keep anything that must survive on an attached volume; volumes persist across restarts, recreations, and image changes.

See also Volumes and Create Volume.

Attach the workspace to one or more networks, with optional static IPv4 per network.

  • Like volumes, networks can be created from the form: type a new name into the network picker and it is created when the workspace is saved (requires permission to create networks on the selected host). Networks created this way are always plain bridge networks; a macvlan network must be created on the Create Network page.
  • After creation, only a network’s name and description can be edited. The driver and the macvlan settings (parent interface, subnet, gateway, IP range) are fixed; to change them, create a new network. See Network Details.

See also Networks.

Grant other users view, modify, or delete access to the new workspace. View covers logs and opening the workspace; the Attach and Exec terminals need modify. See Permissions and access control for the full model, including what a workspace grant transitively reveals.

The submit button has two modes:

  • Deploy create the workspace and deploy it.
  • Save as template save the configuration as a reusable template instead of deploying.

A recommendation badge next to the submit button watches your draft. Shortly after every change, the draft is checked against the workspace recommendations installed on this instance. Recommendations are small checks that recognize common software and setups and suggest configuration: sensible resource settings for the chosen image and host, or fixes for known pitfalls (for example raising the shared memory size when the image contains PyTorch).

A matching recommendation either applies automatically (you are notified, and the change lands in the form where you can still adjust it) or appears as a suggestion. Open the badge to review the results, apply or ignore suggestions, retry one, or bring back a suggestion you ignored earlier.

Which recommendations are available is up to the administrators, who install them from catalog servers configured on the Settings page. See Recommendations for the full story.