Skip to content

Quickstart

Create a sandbox from an image, run a command, copy a file, suspend it and delete it.

Updated View as Markdown

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:v3

Create a sandbox and wait until it’s running.

ezgh sandboxes create "$IMAGE" --name scratch --wait

Run a command. Its output is printed as it arrives, and ezgh exits with the command’s exit code.

ezgh sandboxes exec scratch -- uname -a

For a shell, add -t:

ezgh sandboxes exec -t scratch -- sh

Copy 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.json

Suspend it. Its memory and files are saved, and the next command or file call resumes it.

ezgh sandboxes suspend scratch --wait

Delete it when you’re done. Its files are removed.

ezgh sandboxes delete scratch --yes

In 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.

Next

Navigation

Type to search…

↑↓ navigate↵ selectEsc close