Containers¶
DiscoCloud has two ways to run containers. Both are under Container in the Console menu.
| Service | Use it to | You manage |
|---|---|---|
| Containers | Run a single container without creating a VM | The container |
| Clusters | Create a Kubernetes cluster. Not available yet, see below |
Run a container¶
- Open Container > Containers > Create Container.
- Enter a name and an image such as
nginx. - Choose the network, and a security group if asked.
- Confirm.
To keep data after the container is recreated, add a volume in the Volumes step. See Attach a volume to a container.
A container gets a private IP on the chosen network. Give it a floating IP and open the port in a security group to reach it from outside. A container can also be a backend for a load balancer. Open a container's page to see its logs and its Monitoring tab.
Manage a container¶
Open Container > Containers. Use the row menu, or click the container's name for its page, which has Logs, Console, Monitoring and Action Logs tabs.
| I want to... | Use |
|---|---|
| Start, stop or restart it | Start, Stop, Reboot |
| Run a command inside it | Execute Command. The output is shown in the Console |
| Change the image or recreate it | Rebuild, then choose the new image. The container keeps its name, network and volumes. Start it afterwards |
| Make a copy | Clone Container |
| Add or remove a network | Attach Network / Detach Network |
| Stop it immediately | Kill, with a kill signal. Use Stop unless the container does not respond |
| Rename it or change CPU and memory | Edit Container |
| Delete it | Delete |
Note
A rebuilt container is stopped. After Rebuild, choose Start. Open the Logs tab to check it came up.
Capsules¶
A capsule runs several containers together as one unit, from a YAML template (the same idea as a Kubernetes pod). Open Container > Capsules > Create Capsule and Load Template from a file. Use a capsule when two containers must share a network and lifecycle, for example an app and its sidecar; use a plain container otherwise.
Kubernetes clusters¶
Important
Kubernetes clusters are not available yet. The Container > Clusters and Cluster Templates pages are visible in the Console, but there is no way to get a cluster's access configuration, so a cluster you create cannot be used. The feature will be announced in the release notes when it is ready.
If you need Kubernetes now, contact support@igdisco.com.