网页 综合 更新时间 2026-11-13 18:06:49

Rockcraft – Canonical’s CLI tool for container images | Ubuntu

自动蜘蛛 ubuntu.com 正文约 3348 字
Rockcraft – Canonical’s CLI tool for container images | Ubuntu
Your submission was sent successfully! Close
Thank you for contacting us. A member of our team will be in touch shortly. Close
You have successfully unsubscribed! Close
Thank you for signing up for our newsletter! In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close
Your preferences have been successfully updated. Close notification
Please try again or file a bug report. Close
A rock solid foundation for crafting containers
Build minimal, hardened, OCI-compliant Ubuntu container images with Rockcraft.
Let Rockcraft handle the boilerplate of your container builds so you can focus on your application’s code.
Rockcraft is Canonical’s specialized CLI tool for creating rocks, a new generation of securely-designed, stable, and OCI-compliant container images, based on Ubuntu.
Rockcraft supports a variety of language-specific plugins, removing the overhead for a developer to set up their own language environment in order to build and stage their application into the final container image.
Rockcraft integrates with Canonical’s Chisel tool to build minimal container images from slices of the Ubuntu distribution, ensuring that customers package only what is needed for their application, and nothing more.
Rockcraft uses a declarative, rather than imperative, approach to build containers. This lowers the barrier to entry for new container developers, while saving time and reducing maintenance overhead for experienced engineers.
Rockcraft is built on top of existing concepts within the same family as Snapcraft and Charmcraft, making adoption seamless for developers that are already building snaps and charms.
Learn about some of the high-level commands you can use to build a rock, from generating the base configuration file to publishing a rock to a registry.
Run rockcraft init to generate a base rockcraft.yaml
Rockcraft offers various extensions, including spring-boot-framework. Using the above command, Rockcraft automates the creation of a rockcraft.yaml file and tailors the file for a Spring Boot application.
Define your application dependencies, base OS, and parts in the rockcraft.yaml file.
Run rockcraft pack to process parts and create the final artefact.
Publish a rock to a registry.
Rockcraft forgoes the traditional, linear execution of Dockerfiles in favor of a declarative, component-based architecture.
Rockcraft divides your app into modular blocks called parts. When a part is processed, it performs steps from the parts lifecycle: pull, overlay, build, stage, and prime.
Learn more about parts ›
Declarative chiseling
Rockcraft natively integrates with Chisel directly inside the YAML. Rather than starting with a full OS layer, developers can select the bare base and define precise slices.
Learn about rockcraft.yaml ›
You do not need to write custom build scripts or manually configure virtual environments. Rockcraft handles ecosystem-specific build logic natively through its plugin ecosystem.
Explore Rockcraft plugins ›
Rockcraft provides built-in extensions for modern cloud-native web apps (Django, Flask, FastAPI, Node.js, Go), which silently inject a pre-configured underlying part.
Set up a 12-factor app rock ›
Get started with Rockcraft.
© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.
访问原文 返回搜索 https://ubuntu.com/containers/rockcraft
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。