Targets
A Target is an isolated processing unit where Workspaces are executed. It can operate on various infrastructures, including cloud-based and on-premises environments. Targets provide the necessary compute resources and meet security requirements within the defined infrastructure.
Create a Target
Daytona provides an option to create a Target. Creating a Target requires creating a Target Configuration and specifying the Provider to use.
- Run the following command to create a Target:
-
Select the Target Configuration to use for the Target.
-
Select the Provider for the environment you want to deploy to.
-
Enter a name for your Target.
- Enter the appropriate configuration options when prompted. The configuration options vary based on the selected Provider. The following example shows adding a local Docker Target Configuration.
- Enter a name for your Target.
Start a Target
Daytona provides an option to start a Target.
- Run the following command to start a Target:
- Select the Target you want to start.
Stop a Target
Daytona provides an option to stop a Target.
- Run the following command to stop a Target:
- Select the Target you want to stop.
List Targets
Daytona provides an option to list all Targets.
- Run the following command to list all Targets:
Upon running the command, Daytona will display a list of all Targets along with their configurations.
Restart a Target
Daytona provides an option to restart a Target.
- Run the following command to restart a Target:
Delete a Target
Daytona provides an option to remove a Target.
- Run the following command to remove a Target:
- Select the Target you want to delete.
Targets Information
Daytona provides an option to view detailed information about a Target.
- Run the following command to view detailed information about a Target:
- Select the Target you want to view information about.
Upon running the command, Daytona will display detailed information about the selected Target.
- Select the Target you want to restart.
Upon running the command, Daytona will restart the selected Target.
Set Default Target
Daytona provides an option to set a Target as the default Target.
- Run the following command to set a Target as the default Target:
- Select the Target you want to set as the default Target.
Upon running the command, Daytona will set the selected Target as the default Target.
SSH into a Target
Daytona provides an option to SSH into a Target.
- Run the following command to SSH into a Target:
- Select the Target you want to SSH into.
Upon running the command, Daytona will SSH into the selected Target.
Target Logs
Daytona provides an option to view logs for a Target.
- Run the following command to view logs for a Target:
- Select the Target you want to view logs for.
Upon running the command, Daytona will display logs for the selected Target.