jailoc builds the workspace image with Docker and converts its layers into read-only EROFS images that the VM mounts as its root file system. This page lists which image settings carry over into the workspace VM and which overlay changes break it.
Image settings in the VM
Instruction
Used in the VM
Notes
ENV
Yes
Passed to jailoc-guest and inherited by every session; config env and secrets are added on top
RUN, COPY, ADD
Yes
The resulting file system is the VM's root file system
LABEL
No
Metadata only
ENTRYPOINT, CMD
No
jailoc-guest is the VM's init; sessions run the coding agent over SSH
USER
No
Sessions run as UID 1000
WORKDIR
No
The working directory is the first workspace path, or the target directory of a session
EXPOSE
No
Publish guest ports with ports in the configuration
VOLUME
No
Persistent state lives in the VM's persistent home; see configuration
HEALTHCHECK, STOPSIGNAL, SHELL
No
User account
jailoc-guest looks for the user with UID 1000 in the image's /etc/passwd and uses its name, group, home directory and shell.
When the image has no such user, jailoc-guest adds agent (UID and GID 1000, home /home/agent, shell /bin/bash if present, otherwise /bin/sh).
The image keeps its own numeric owners, modes and extended attributes on every host: /etc/shadow keeps its shadow group, sudo stays setuid root, and files the image gives UID 1000 belong to the agent.
The agent cannot create files outside its home, the shares, /tmp and /var/tmp: use sudo or bake changes into the image.
If the guest kernel cannot idmap (possible only with a custom [vm] runner or lib_dir runtime), the agent runs as the host user's UID and GID, and jailoc-guest idmaps the image layers so that the agent's files in the image appear as the host user's.
Incompatible changes
Severities:
Severity
Meaning
Fatal
The VM or the session does not start
Breaking
The VM starts but core functionality is unavailable
Degraded
The VM starts; partial functionality is lost
Action
Severity
Effect
Remove the agent binary (for example opencode) from PATH
Fatal
Sessions fail to start with an error naming the binary
Override ENV PATH without /home/agent/.local/bin
Breaking
Tools installed by the agent under ~/.local/bin are not found
Remove dockerd from an image used directly with enable_docker = true
Fatal
jailoc up fails
Remove nftables while enable_docker is on
Breaking
dockerd cannot set up container networking
Use the docker CLI in a RUN step with enable_docker = false
Fatal
The build fails: Docker is installed only for workspaces with enable_docker on
Remove ca-certificates
Breaking
TLS fails, and a forwarded ca_bundle has no trust store to join
Use a stage jailoc can't set up CA trust in (not Debian or Ubuntu, or no shell) while an external ca_bundle is selected