Create Workspace Page
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.
Form sections
Section titled âForm sectionsâWorkspace settings
Section titled âWorkspace settingsâ- 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.
Image settings
Section titled âImage settingsâ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.
Workspace configuration
Section titled âWorkspace configurationâ- 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.
Startup configuration
Section titled âStartup configurationâOverride the containerâs startup command and arguments.
External URLs
Section titled âExternal URLsâ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.
Environment variables
Section titled âEnvironment variablesâ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 skippedDATABASE_URL=postgres://db:5432/appDEBUG=falseNames 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.
Port configuration
Section titled âPort configurationâ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.
Volumes
Section titled âVolumesâ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.
Networks
Section titled âNetworksâ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.
Permissions
Section titled âPermissionsâ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.
Recommendations
Section titled âRecommendationsâ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.
Related Pages
Section titled âRelated Pagesâ- Workspaces Workspace listing
- Workspace Details View and edit a workspace
- Workspace Templates Reusable workspace definitions
- Workspace Logs Stream container logs
- Workspace Attach Attach to the main process
- Workspace Exec Run a command in the container