You need an image in Container Registry that you can pull, and
SandboxesFullAccess in the project.
With the CLI
Push an image to Container Registry, or pick one you already have.
IMAGE=<id>.registry.ezghcloud.com/team-a/runner:v3Create a sandbox and wait until it’s running.
ezgh sandboxes create "$IMAGE" --name scratch --waitRun a command. Its output is printed as it arrives, and ezgh exits with the command’s exit code.
ezgh sandboxes exec scratch -- uname -aFor a shell, add -t:
ezgh sandboxes exec -t scratch -- shCopy a file in, and a result out.
ezgh sandboxes cp ./job.sh scratch:/work/job.sh
ezgh sandboxes exec scratch -- sh /work/job.sh
ezgh sandboxes cp scratch:/work/result.json ./result.jsonSuspend it. Its memory and files are saved, and the next command or file call resumes it.
ezgh sandboxes suspend scratch --waitDelete it when you’re done. Its files are removed.
ezgh sandboxes delete scratch --yesIn the console
Open Sandboxes and choose Create sandbox.
Enter the image as <registry host>/<repository>:<tag>, choose a size, and create it.
Open the sandbox, then its Terminal tab, and choose Connect for a shell.
Suspend, resume, stop, start or delete it from the sandbox’s page.