Skip to content

docs: Explain how to run a container image - #383

Draft
nurof3n wants to merge 1 commit into
prod-stagingfrom
nurof3n/docs/container-images
Draft

nurof3n wants to merge 1 commit into
prod-stagingfrom
nurof3n/docs/container-images

Conversation

@nurof3n

@nurof3n nurof3n commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Documents how to run a plain container image as a kernel-less image, with no build step.

  • platform/images: new "Container images" section: copy the image with unikraft image copy, platform selection, first-start conversion, the config fields that the platform uses, --args, entrypoint and workdir, compressed layers, limits, and where the platform doesn't run these images.
  • tutorials/docker-to-ukc: a tip that points to the new section.

Depends on unikraft-cloud/agent#772, unikraft-cloud/agent#776, unikraft-cloud/x#634, unikraft-cloud/cli#657, unikraft-cloud/platform#1116 and unikraft-cloud/platform-api#42.
unikraft image copy needs a CLI release with unikraft-cloud/cli#657, and the page names that version before this merges.
Refs TOOL-1767.

@nurof3n
nurof3n temporarily deployed to pull-requests November 17, 2026 01:40 — with GitHub Actions Inactive
@github-actions
github-actions Bot temporarily deployed to pull-requests November 17, 2026 01:43 Inactive
@nurof3n
nurof3n requested a review from craciunoiuc November 24, 2026 15:23
Comment thread pages/platform/images.mdx
Comment on lines +174 to +178
unikraft image copy docker.io/library/nginx:latest <my-org>/nginx:latest

# or copy an image that you built with Docker
docker save -o my-app.tar my-app:latest
unikraft image copy ./my-app.tar <my-org>/my-app:latest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ai: medium: Both unikraft image copy commands need the Accessor.Copy change of unikraft-cloud/cli#657, which "Depends on" does not list. With the released CLI (0.9.0, and prod-staging up to v0.9.1-staging.19), image copy docker.io/library/busybox:latest ./bb.tar and the docker save path both fail with failed to export tarball: blob sha256:... not found and leave an empty file, while a cli#657 build copies both. Can we add cli#657 to the dependencies, merge after a CLI release that has it, and name that version here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: the description lists unikraft-cloud/cli#657. Before this merges, I name the CLI release that has it on the page.

Comment thread pages/platform/images.mdx Outdated
Note the following:

- The platform accepts plain layers, and layers that `gzip` or `zstd` compresses.
- The platform refuses an image with more than 1,000,000 files and directories, or with more than 64 GiB of file data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ai: medium: The agent counts every tar entry of every layer, also files that a later layer rewrites or deletes, so an image with 600k files and a RUN chown -R layer over them is refused at 1.2M entries. The 64 GiB is only a cap: each conversion gets free disk / (2 × images-max-conversions), so a node with less than 256 GiB free refuses smaller images. Can we say "more than 1,000,000 entries in all its layers, counting files that later layers change or delete, or more than 64 GiB of file data, or less when the node is low on disk space"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 56ada7e with your wording, with two changes. The size limit is on the root filesystem, because unikraft-cloud/agent#776 now also limits the EROFS image, which gives each file a whole block. A new line gives the limit of 256 MiB on names, xattrs and link targets.

Signed-off-by: Alex-Andrei Cioc <andrei.cioc@unikraft.io>
@nurof3n
nurof3n force-pushed the nurof3n/docs/container-images branch from 57ce4a1 to 56ada7e Compare November 25, 2026 09:22
@nurof3n
nurof3n temporarily deployed to pull-requests November 25, 2026 09:22 — with GitHub Actions Inactive
@nurof3n
nurof3n requested a review from craciunoiuc November 25, 2026 09:22
@github-actions
github-actions Bot temporarily deployed to pull-requests November 25, 2026 09:37 Inactive

This branch was previously deployed

1 inactive deployment
pull-requests — 56ada7e4 Deployed Nov 25, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants