cc-shim
is a process spawned by the runtime per container workload. The runtime
provides the pid of the cc-shim process to containerd-shim on OCI create command.
Usage:
cc-shim --container-id
Here the
cc-shim
forwards all signals to the cc-proxy process to be handled by the agent
in the VM.
The shim forwards any input received from containerd-shim to cc-proxy and writes any data received from the proxy on the I/O file descriptor to stdout/stderr which is picked up by containerd-shim.
TODO: The shim should capture the exit status of the container and exit with that exit code.