Skip to content

Container

Methods

with func :cd? :env?

Runs func in this running container through a VFS context.

A matching dolang-vfs helper is copied to a session-specific path under /tmp and launched with the container runtime's exec command. The helper is removed after the VFS connection starts when the container user has permission to do so.

cd selects the initial working directory. env applies initial environment overrides; nil unsets a variable and :INHERIT: copies its value from the calling context.

Returns the result of func.

state()

Current container state.