--cas to tl sbx image create or tl sbx image import to build or import a CAS image. A sandbox booted or restored from a CAS image or snapshot takes its
snapshots in CAS format too.
Example: Launch a Sandbox from a CAS Image
The managed Tensorlake images are available in CAS form under thetensorlake/cas/ prefix:
- CLI
- Python
- TypeScript
Build a CAS Image
Add--cas to tl sbx image create. Everything else works as described in Define, Build and Register an Image.
Dockerfile
FROM references against the CAS catalog. A Tensorlake image named without the tensorlake/cas/ prefix is looked up as tensorlake/cas/<name>,
so FROM tensorlake/ubuntu-minimal builds on tensorlake/cas/ubuntu-minimal, and the build fails if that CAS image doesn’t exist. Other references, such as ubuntu:24.04
or a private registry image, are pulled from their registry.
Unlike default builds, CAS builds accept Dockerfile build args:
Import a CAS Image
Add--cas to tl sbx image import to import a registry image as is:
--disk_mb sets the root disk size of sandboxes created from the image, as for any build or import. You can grow it further for an individual sandbox with --disk_mb on tl sbx create.
See Also
Build and Import Images
The build and import workflow that
--cas plugs into.Live Resize
Change the CPUs, memory, and disk of a running CAS sandbox.
Nested Virtualization
Run QEMU/KVM virtual machines inside a CAS sandbox.