Starting and managing
Login to the Triton Compute Service portal. From the Dashboard, click the Create Instance button, then select Infrastructure Container. Follow the prompts on the screen to select the base software image, the RAM, disk and CPU resources for your container, and set other details including the DNS names.
When finished, click the Launch button to create and start your container.
Once created, you will notice your container displayed in a grid within the Instances page of the Compute section. The container status will be indicated as either provisioning, running or stopped. If it is labeled as provisioning, the container is still being set up. When finished, your new container should be listed as running.
In order to access the container, you need the IP address. The primary IP address will be listed next to the container's name in your instances list. To get all of the IP addresses and other container details, click on the name of your new container. The IP addresses will be listed under Summary.
This screencast covers how create a new infrastructure container from the portal.
If you skipped ahead to the video, you can go back and review the written tutorial for step-by-step instructions.
Install the Triton CLI tool to create an infrastructure container from the command line.
triton installed and configured, we can provision infrastructure containers by running
triton instance create. Here is an example of installing ubuntu:
triton instance create -w --name=ubuntu-server-1 ubuntu-16.04 g4-highcpu-128M Creating instance ubuntu-server-1 (91e8aad0-0aac-4920-9689-84b3bc2031d6, ubuntu-16.04@20161004) Created instance ubuntu-server-1 (91e8aad0-0aac-4920-9689-84b3bc2031d6) in 20s
This command has four parameters:
- We gave our container a name using
- We used
-wto wait the container to be created.
- We used ubuntu-16.04 as our image.
- We set g4-highcpu-128M as our package. To list all available packages, run
When an image is created, it will automatically be in a running state. To view all of your instances (Docker containers, infrastructure containers, and VMs), run
triton instance list.
SHORTID NAME IMG STATE FLAGS AGE 91e8aad0 ubuntu-server-1 ubuntu-16.04@20161004 running - 5m
To get the IP address of your new container, run
triton instance get with the container ID.
triton instance get 91e8aad0
The terminal will return a large list of infrastructure details. The IP address will be listed next to
Learn more about working with instances
SSH is the primary means of connecting and authenticating for commmand line access to all container types with the exception of Docker and Windows instances. You must have installed Triton CLI tool.
Learn more about connecting to containers and VMs.
To remove an instance you're no longer using with
triton CLI, execute
triton instance delete <UUID>. That command can remove any instance, including Docker containers.
To remove an instance in the portal, login to your account. Navigate to the Instances list. Select the data center which hosts the container you wish to remove. Select the checkbox next to each container you wish to remove. From the actions drop down, select delete. You will be prompted to confirm: "Destroy the information on this instance and stop billing for this instance?"
You will be billed for all provisioned containers, including those which are stopped. To avoid charges for containers which you may no longer be using, be sure to remove them.