Repository navigation
Conversation
| 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Done: the description lists unikraft-cloud/cli#657. Before this merges, I name the CLI release that has it on the page.
| 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. |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
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>
57ce4a1 to
56ada7e
Compare
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 withunikraft image copy, platform selection, first-start conversion, the config fields that the platform uses,--args,entrypointandworkdir, 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 copyneeds a CLI release with unikraft-cloud/cli#657, and the page names that version before this merges.Refs TOOL-1767.