Skip to content

Commands

The wctr client, the wctrd daemon, exit codes and the limits the daemon enforces.

wctr

The client. It finds the daemon at -H unix:///path, else $WCTR_HOST, else unix:///var/run/wctr.sock.

CommandFlags
pull IMAGEIMAGE is a registry reference or oci:<dir>[:<ref.name>]
images-q
run IMAGE [COMMAND] [ARG...]--rm, -d/--detach, --name, -e/--env KEY=value (or KEY from the shell), --entrypoint, -w/--workdir, -m/--memory
ps-a/--all, -q
logs CONTAINER-f/--follow
rm CONTAINER...-f/--force
rmi IMAGE...-f/--force
inspect NAME|ID...containers, then images
kill CONTAINER...
version

wctr run pulls an image it does not have.

Exit status of wctr run

The container’s own, or:

CodeMeaning
125the CLI or the daemon failed
126not a WebAssembly module
127module not found
134the module trapped
137killed, or the wall-clock timeout

wctrd

FlagMeaningDefault
-H, --host unix:///paththe socket to serve (unix only; TCP is refused, the API has no authentication)unix:///var/run/wctr.sock
--data-rootwhere images are kept$XDG_DATA_HOME/wasmcontainers, else ~/.local/share/wasmcontainers
--memorylinear-memory limit per container256m
--run-timeoutwall-clock limit per run (0 = none)10m
--storage-quotabytes a container may write256m
--max-containerscontainers at once256
--insecure-registry host:portallow plain HTTP to that registry (loopback registries are always plain HTTP)none

Bounds on untrusted content

WhatBound
blob512 MiB
image1 GiB, 128 layers
unpacked layers1 GiB, 131072 files
gzip expansion ratio200:1
logs kept8 MiB per container

Created on by tannevaled

Modified on by tannevaled