# Container Storage Basics | Cycle.io

Canonical URL: https://cycle.io/learn/container-storage-basics

## Container Storage Basics.

In containerized environments, storage typically falls into two main categories: **stateless** and **stateful**. Each type serves distinct purposes and is suited to specific use cases.

### Stateless Storage

**Definition**: Stateless storage does not retain data after a container is stopped or restarted. When a container using stateless storage is restarted, any data stored within it is reset to its original state or cleared completely.

**Use Cases**: This type of storage is ideal for applications that don't need to persist data beyond the lifespan of a container, such as temporary data processing tasks, caching, or scenarios where data is stored in an external database. It's useful for services where a clean start is required every time.

### Stateful Storage

**Definition**: Stateful storage, by contrast, retains data across container restarts. When a container using stateful storage is restarted, the data stored in its volume remains intact, ensuring continuity of data.

**Use Cases**: Stateful storage is essential for applications that require persistent data, such as databases, file storage systems, or any service where data needs to be preserved across container restarts or migrations. This type of storage is crucial for ensuring data integrity and continuity in applications that need to remember their state.

Take a deeper dive into [stateless vs stateful containers](https://cycle.io/learn/stateless-vs-stateful).

Guides Docs

Deploying a Database

Learn how to deploy a database on Cycle Platform

<https://cycle.io/docs/guides/deploying-a-database>

---

## 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
