Skip to main content
Containers lose all local data when they stop unless you configure external storage. Mounting an Archil disk gives the processes inside the container a persistent, elastic POSIX filesystem backed by S3 — no EBS snapshots, no manual volume provisioning, no object-storage SDKs. The best way to get access to Archil in a container depends on your runtime:

Bind mount from the host

First, install the archil CLI and mount a disk on the host:
Then start the container with a volume mount:
The application inside the container reads and writes to /data as a normal filesystem. Archil handles caching on fast local SSD and synchronizing to S3 in the background.

Docker Compose

You can manage delegations from inside the container by installing the Archil client there too:

FUSE inside the container

Some runtimes don’t share the host’s kernel — most commonly microVMs like Firecracker, Cloud Hypervisor, Kata Containers, or gVisor. In principle you could share the host’s FUSE mount into the guest over virtio-fs, but virtio-fs support across microVM runtimes is spotty — some implementations don’t support it at all, others lag on features like extended attributes, locking, or large-file I/O, and performance varies widely. It’s simpler and more portable to have the guest mount Archil itself. Install the Archil client in the guest image and run archil mount during boot or as part of your workload’s entrypoint:
For a standard Docker container sharing the host kernel, doing this requires --privileged (or SYS_ADMIN) plus /dev/fuse:
Running an OCI container with --privileged grants full host access and exposes the mount to the host’s seccomp policies — some operations (e.g. executing a binary from the disk) can fail with EACCES. If you’re on Docker/Podman, use the bind-mount approach above. --privileged is only the right answer for microVMs that don’t share the host kernel.

Kubernetes

For production Kubernetes deployments, use the Archil CSI driver. It manages Archil mounts as native Kubernetes persistent volumes, so pods get Archil storage without privileged containers or host mounts.

Sandbox providers

Some managed sandbox and dev-environment platforms support mounting Archil disks natively. On these platforms, follow the provider’s guide rather than the manual steps above:

Command reference

For every flag archil mount, archil unmount, and the rest of the archil CLI accept, see the archil CLI reference.