Sign inSign up

longnguyen58445/offload-kit:0.1.0

Manifest digest

sha256:3bc04d91659ce919b9b1a11082915dc45474e42d58798447283b82cfd477016e

Last pushed

16 days by longnguyen58445

Type

Sandbox Kit

Manifest digest

sha256:3bc04d91659ce919b9b1a11082915dc45474e42d58798447283b82cfd477016e

MIXIN
REQUIRES SECRETS

Bundles the Docker Offload CLI plugin (v0.6.85, linux amd64 and arm64) set to the Cloud Sandboxes engine (Offload v2), so agents can run Docker workloads on a remote engine through the docker-cloud context. Signs in with a Docker personal access token bound on the host.


Arguments
NameRequiredDefaultDescription
stageOptional

Set to 1 to use Docker's staging environment (needs a staging PAT). Empty is production.

usernameOptional

Docker ID the personal access token belongs to. Leave empty to sign in by hand with docker login.


Credentials
NameServiceRequiredDescription
DOCKER_OFFLOAD_PATdocker-offloadOptionalDocker personal access token for the account that has Cloud Sandboxes access. The startup script signs in with it, so it is present in the sandbox (and in ~/.docker/config.json); scope it narrowly.

Network Egress

hub.docker.com:443

login.docker.com:443

index.docker.io:443

auth.docker.io:443

registry-1.docker.io:443

api.sandboxes-cloud.docker.com:443

ssh.sandboxes-cloud.docker.com:22

hub-stage.docker.com:443

login-stage.docker.com:443

index-stage.docker.io:443

api.sandboxes-cloud-stage.docker.com:443

Apply this mixin to a sandbox

sbx run <agent> --kit longnguyen58445/offload-kit:0.1.0

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠