---
title: Getting started with Canonical containers
description: Learn about Canonical containers, also known as “rocks”, and how to build
  your own.
url: https://staging.ubuntu.com/containers/docs
---

# Canonical containers

Canonical containers, also known as “rocks”, are a new generation of secure, stable and OCI-compliant Ubuntu images, [hardened by design](https://staging.ubuntu.com/chisel/docs/latest/), and offering a [specialized and predictable UX](https://staging.ubuntu.com/containers/rockcraft/docs/latest/explanation/pebble/).

---

## Browse rocks

[---

Python](https://hub.docker.com/r/ubuntu/python)

[---

Kafka](https://hub.docker.com/r/ubuntu/kafka)

[---

RabbitMQ](https://hub.docker.com/r/ubuntu/rabbitmq)

[---

.NET Runtime](https://hub.docker.com/r/ubuntu/dotnet-runtime)

[---

Valkey](https://hub.docker.com/r/ubuntu/valkey)

[---

JRE](https://hub.docker.com/r/ubuntu/jre)

---

## Use a rock

Rocks are hardened to chisel away contents that are unnecessary at runtime, thus preserving the same functionality while reducing the storage footprint and attack surface. Like this Python rock.

---

## Building steps

---

Initialize

[Get started - quick guide](https://staging.ubuntu.com/containers/rockcraft/docs/latest/how-to/get-started/)

[Use Rockcraft with Multipass](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/hello-world/#setup-your-environment)

---

Craft

[Rocks project file](https://staging.ubuntu.com/containers/rockcraft/docs/latest/reference/rockcraft-yaml/)

[Use parts to build your container application](https://canonical-craft-parts.readthedocs-hosted.com/latest/how-to/use_parts/)

[Define rocks services](https://staging.ubuntu.com/containers/rockcraft/docs/latest/how-to/crafting/convert-to-pebble-layer/)

[Harden a rock](https://staging.ubuntu.com/containers/rockcraft/docs/latest/how-to/chiseling/chisel-existing-rock/)

[Install a custom package slice](https://staging.ubuntu.com/containers/rockcraft/docs/latest/how-to/chiseling/chisel-existing-rock/#chisel-the-python-rock)

[Define a non root user](https://staging.ubuntu.com/containers/rockcraft/docs/latest/how-to/crafting/add-internal-user-to-a-rock/)

---

Pack

[Pack a rock](https://staging.ubuntu.com/containers/rockcraft/docs/latest/reference/commands/pack/)

---

## Get started with rocks

Try building a ['Hello world' rock](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/hello-world/). You can also build rocks for a variety of applications.

[---

Flask](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/flask/)

[---

Django](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/django/)

[---

FastAPI](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/fastapi/)

[---

Go](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/go/)

[---

Express](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/express/)

[---

Spring Boot](https://staging.ubuntu.com/containers/rockcraft/docs/latest/tutorial/springboot/)
