Create Environment
Environment Management
Create Environment
Create a new Docker environment in Dockhand
POST
Create Environment
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Finsys/dockhand/llms.txt
Use this file to discover all available pages before exploring further.
Description
Creates a new Docker environment with the specified configuration. Supports four connection types: local Unix socket, direct TCP connection, Hawser Standard (HTTP proxy), and Hawser Edge (WebSocket reverse proxy).Authentication
Requiresenvironments:create permission when authentication is enabled.
Request Body
Unique display name for the environment
Type of Docker connection:
socket- Local Unix socketdirect- Direct TCP connection to Docker APIhawser-standard- HTTP proxy via Hawser agenthawser-edge- WebSocket reverse proxy via Hawser agent
Connection Parameters
Hostname or IP address (required for
direct and hawser-standard types)Port number for Docker API connection
Connection protocol:
http or httpsUnix socket path (used when
connectionType is socket)TLS Configuration
TLS Certificate Authority (CA) certificate in PEM format. Required for self-signed certificates.Format: Multi-line PEM string with BEGIN/END markers
TLS client certificate in PEM format for mutual TLS authentication.Format: Multi-line PEM string with BEGIN/END markers
TLS client private key in PEM format for mutual TLS authentication.Format: Multi-line PEM string with BEGIN/END markers
Skip TLS certificate verification. Warning: Insecure, not recommended for production use.
Hawser Configuration
Authentication token for
hawser-standard connections. Must match the token configured on the Hawser agent.Display Options
Icon identifier for UI display
Array of label strings for categorization (maximum 10 labels)
Collection Settings
Enable collection of container activity events
Enable collection of host metrics (CPU, memory)
Highlight recent changes in the UI
Network Information
Public IP address of the environment host
Response
Returns the created environment object with all fields populated.Unique identifier for the newly created environment
Name of the environment
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Example Requests
Local Socket Connection
Direct Connection with TLS
Direct Connection with Self-Signed Certificate
Hawser Standard Connection
Hawser Edge Connection
Example Response
Error Responses
Invalid request dataMissing name:Missing host for direct/hawser-standard:
User lacks
environments:create permissionEnvironment name already exists
Failed to create environment
Notes
- Environment names must be unique
- In Enterprise mode, the creator is automatically assigned the Admin role for the new environment
- PEM certificates are automatically cleaned (whitespace trimmed) before storage
- Labels are limited to a maximum of 10 per environment
- After creation, subprocess collectors are notified to begin monitoring the new environment
- For
hawser-edgeconnections, the environment is created but remains inactive until an agent connects
