HUB
Sign inSign up

sbx/gitlab-ssh:latest

Multi-platform
Manifest digest

sha256:470537ddd12f99560fb1e0216cfd0c2fec6f862e1b0f2be4301fcc2d41403ab1

Last pushed

about 9 hours by sbx

Type

Sandbox Kit

Manifest digest

sha256:470537ddd12f99560fb1e0216cfd0c2fec6f862e1b0f2be4301fcc2d41403ab1

MIXIN

Appends a GitLab instance's SSH host keys to ~/.ssh/known_hosts so git clone/push/pull over SSH work without interactive host verification. GitLab.com's keys are pinned; a self-managed instance's key is supplied with the hostKey argument. Writes no private key material and touches nothing else under ~/.ssh.

Arguments
NameRequiredDefaultDescription
hostOptionalgitlab.com
GitLab instance hostname, e.g. gitlab.example.com for a self-managed instance
hostKeyOptional
known_hosts key for a self-managed instance, as 'ALGORITHM BASE64' with no trailing comment. Required when host is not gitlab.com; ignored for gitlab.com, whose keys are pinned below.
Capabilities

Expand a row to see its full configuration.

ConfigurationTypeRequiredDescription
com.docker.sandbox/ssh-agent@1Required—
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Required—
Requiresdeb/openssh-client

Apply this mixin to a sandbox

sbx run <agent> --kit sbx/gitlab-ssh:latest

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(opens in new tab)