Repository navigation
feat(containers): add lightning-containers skill - #63
Draft
Danidapena wants to merge 1 commit into
Draft
Danidapena wants to merge 1 commit into
Danidapena wants to merge 1 commit into
Conversation
Teaches agents to push images to a teamspace's private litcr.io registry with `lightning container`, run them as jobs, deployments and sandboxes or pull them with plain docker, and list, tag-check and clean up registry images. Live-verified on prod lightning.ai with lightning-sdk 2026.10.13: upload, list, download, docker login/pull, a CPU job from a registry image, delete by digest and delete by repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
lightning-containers: push Docker images to a teamspace's privatelitcr.ioregistry withlightning container, run them as jobs, deployments and sandboxes or pull them with plaindocker, and list, check and clean up registry images. Also adds the skill to the README table and.claude-plugin/plugin.json.Tested against
Prod
lightning.ai,lightning-sdk2026.10.13, teamspacelightningai-engineering/general. Everything pushed or launched was deleted afterwards.container upload/list --json{"repository":"skilltest-cr","latest_tag":"v1",...}docker login litcr.io(username + API key),docker pullLogin Succeeded, pulled and ran the imagelightning job run --image litcr.io/lit-container/.../skilltest-cr:v1 --machine CPUCompleted, with no image credentials passedlocationmatches the pushed URL; deletingv1by digest keptv2container delete -yGotchas found while testing
These look like SDK bugs; the skill documents workarounds for now.
container uploadexits 0. A missing image only printsError: Container <name>:<tag> does not existon the progress line.container downloadfails for any tag other thanlatest: it pulls the image, then retags<url>with no tag, which means:latest, and exits 1 withImageNotFound: 404.docker pullright after a successfuluploadis refused asunauthorized, because the CLI's login stays inside its own process.GET .../lit-registry/<repo>/artifactsreturns the newest version only inlatestArtifact, not inartifacts.Not live-tested
These are taken from the grid backend and SDK code:
SECRET_TYPE_DOCKER_REGISTRYsecret; the payload shape comes fromexternal_secret.go. Creating a sandbox here needed a teamspace-scoped key.container listwithout--cloud-accountlists the default cloud account's registry when that account is BYOC.— Claude Opus 5.5, on direct instruction; text not reviewed