# Introduction to Containers | Cycle.io

Canonical URL: https://cycle.io/docs/platform/introduction-to-containers

## Introduction to Containers.

[Containers](https://cycle.io/learn/introduction-to-containers) are a way to package software so that it is portable, secure, and isolated from other units of software on the host it resides.

Containers are the heart of the Cycle Platform. They "contain" the base [image](https://cycle.io/docs/platform/introduction-to-images) and all [configuration options](https://cycle.io/docs/portal/container-configuration-overview) needed to run them. Running copies of a container are called [instances](https://cycle.io/docs/platform/container-instances).

Containers on Cycle conform to the [OCI spec](https://opencontainers.org/), so any container that can run on Docker or Kubernetes can run on Cycle **without any modification to the base image**.

### How Containers Work on Cycle

Containers are deployed into [environments](https://cycle.io/docs/platform/introduction-to-environments). The platform will orchestrate containers across [servers](https://cycle.io/docs/platform/servers) within the [cluster](https://cycle.io/docs/platform/clusters) the environment is assigned to, depending on the [deployment strategy](https://cycle.io/docs/platform/container-deployment-strategies) set in the container's configuration.

The Cycle Platform provides powerful integrated tooling for running containers, especially when compared to alternative container platforms.

-   [Automated Backups](https://cycle.io/docs/platform/container-backups)
-   [Queryable Logs](https://cycle.io/docs/platform/container-logs)
-   [Real-Time Instance Console](https://cycle.io/docs/platform/container-instances#viewing-instance-output)
-   [Secure Two-Way Console via SSH](https://cycle.io/docs/platform/container-instances#two-way-console-ssh)
-   [Built-In Auto-Scaling](https://cycle.io/docs/platform/scaling-and-auto-scaling)
-   [Remotely Accessible Volumes](https://cycle.io/docs/platform/container-volumes)
-   [Functions](https://cycle.io/docs/platform/function-containers)

and much more.

### Configuration Options

Containers on Cycle are highly configurable, allowing deep customization - even up to running containers as "fully privileged".

#### Network Configuration

A container's [network configuration](https://cycle.io/docs/portal/container-network-configuration) dictates if and how network traffic enters and exits the container.

#### Runtime Configuration

A container's [runtime configuration](https://cycle.io/docs/portal/container-runtime-configuration) dictates how the container 'runs', including the commands run on start, the information it has access to, and permissions it has on the host.

#### Deployment Configuration

A container's [deployment configuration](https://cycle.io/docs/portal/container-deployment-configuration) dictates how the container is orchestrated, including deployment strategies, startup/shutdown policies, and health checks.

#### Resource Configuration

A container's [resource configuration](https://cycle.io/docs/portal/container-resources-configuration) dictates how much CPU and RAM the container can utilize.

#### Auto-Scale Configuration

A container's [auto-scale configuration](https://cycle.io/docs/portal/container-auto-scaling-configuration) dictates how a container scales up and down based on demand.

### Stateless vs Stateful Containers

Cycle understands and makes a distinction between **stateless** **stateful** and containers.

#### Stateless Containers

Stateless containers are 'reset' every time they are restarted. They are best suited for ephemeral processes that can be scaled easily, such as web servers or APIs. Most containers are **stateless**, and should be the preferred way of running containers.

Stateless containers cannot have attached [volumes](https://cycle.io/docs/platform/container-volumes) and don't support [backups](https://cycle.io/docs/platform/container-logs), but **can** be [auto-scaled](https://cycle.io/docs/platform/scaling-and-auto-scaling).

#### Stateful Containers

Stateful containers are containers that have data that should persist between restarts of the container. These types of containers are required when attaching [volumes](https://cycle.io/docs/platform/container-volumes), and are often used for hosting databases or CDNs/file servers.

Generally, a stateful container will only ever have a single [instance](https://cycle.io/docs/platform/container-instances) (and is recommended by our team). Multi-instance stateful containers are supported, however they tend to lead to complications with configuration. If deploying a sharded or distributed database, for example, it is best to have multiple stateless containers with a single instance, than a single container with multiple instances.

Stateful containers are treated as 'special' by Cycle. They cannot be auto-scaled, but exclusively support [volumes](https://cycle.io/docs/platform/container-volumes) and [backups](https://cycle.io/docs/platform/container-backups).

### Deploy Containers on Cycle

Get started right away by deploying containers to Cycle following our interface-specific documentation below.

[##### Portal](https://cycle.io/docs/portal/creating-a-container)[##### API](https://cycle.io/docs/api/platform/tag/containers/POST/v1/containers#tag/containers/POST/v1/containers)

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
