Manage Bohrium container images: discover, inspect, pull, push, build, commit, monitor, or delete via `bohr image` CLI. Supports local Docker builds, remote Dockerfile builds, sandbox snapshots, and image lifecycle states.
Ships in bohrium-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Goal | Route |
|---|---|
| Reuse an existing image | List/search → get → keep the canonical registry address |
| Build with local source files | Local build → returned pushCommand → validated push receipt |
| Build Dockerfile text remotely | Remote build → terminal image status → inspect final image |
| Save a sandbox rootfs | Storage gate below → commit → terminal status; mounted data is separate |
bohr image build --mode local --dockerfile ./Dockerfile --context . --name research-env:v1 --project-id <project_id> -o json
data.localImage, imageUrl, id and pushCommand. With uploaded=false, the image is only built locally. Run the actual returned pushCommand in the same Docker daemon, Bohrium identity/profile and project; do not reconstruct a registry path.data.id, imageUrl, status=1, digest and sizeBytes. Use that final imageUrl with Job --image_address or Node --image_path; an image record ID or local tag is not the registry address.status/build-log. Remote build/commit uses the separate 0/1 → 2/3/4 lifecycle described below; its success status 2 must not be applied to a local push receipt.Choose build --mode local for a Docker build with local context; run its
returned push command separately. Default build --mode remote sends Dockerfile
text only to the remote builder. commit snapshots a running sandbox container's
root filesystem on the server; do not assume mounted volumes are included.
Discover an existing image before creating one:
bohr image list --page 1 --size 50 -o json
bohr image search "lammps cuda" -o json
bohr image search "DeePMD" --by-name -o json
bohr image get <image_id> -o json
bohr image packages <image_id> -o json
list uses --page (default 1) and --size (default 100, accepted 1-512). The service can cap a page at 100; follow the returned data.pagination.page_size and has_more rather than assuming the requested size was honored. --limit is a hidden compatibility spelling with the same default.
Search defaults to an AND intersection of installed software capabilities. Use repeatable --capability/--framework filters for explicit software requirements, or --by-name with a positional keyword for repository/tag name search; name mode cannot combine with those filters. Search pagination uses --page and --page-size.
packages reads extracted software facts grouped in the returned data.packages map. Supply either a catalog image ID or --image <full_registry_reference>, never both. Scanner facts are evidence for selection, not proof that the workload has run successfully.
Pull copies a Bohrium image into the local Docker daemon. Confirm Docker is installed/running and the address belongs to the Bohrium registry:
bohr image pull <bohrium_image_address> --timeout 30m -o json
Build with local context and then run the returned pushCommand with the same
Docker context/daemon, Bohrium profile and identity, project and short name:
bohr image build --mode local --dockerfile ./Dockerfile --context . \
--name my-image:v1 --project-id 1234 -o json
This uses prepare to reserve a remote image record and quota; it is not offline.
Local build does not submit remote compute or require --yes, and does not push.
After local success, run pushCommand; do not poll image status or build-log
with the prepare record ID. Use a unique name and do not run same-name operations
concurrently. A known build failure attempts abort. If prepare does not return a
reliable result, inspect the state first: even an error can leave a record, so
do not assume it is absent or was cleaned up.
Alternatively, push an existing Docker daemon image with your AccessKey. The command invokes
the Docker CLI on PATH; it does not build an image or upload a Dockerfile or
context. Prepare the image yourself with docker build, docker load, or
docker pull first. The second argument is a
build/commit-style short image name, and project ID comes from --project-id or
BOHR_PROJECT_ID:
docker build -t my-image:v1 .
bohr image push my-image:v1 my-image:v1 --project-id 1234 --timeout 30m -o json
Use only the prepare response's canonical imageUrl for the registry target;
never construct a project/user path. The lifecycle and failure recovery are in
references/commands.md.
Before every bohr image commit, run
bohr sandbox storage inspect <sandbox_id> -o json immediately before submit.
Do not rely on an 80% threshold after commit starts: commit apply may consume
temporary rootfs faster than reactive expansion becomes Ready. Use the
failure-data formula in references/commands.md,
resize first when needed, and continue only after status=ready. If the
expected uncompressed commit delta is unknown, do not treat it as zero or claim
the capacity is safe. Storage resize is grow-only and cannot shrink a rootfs.
This Agent preflight is not automatic CLI behavior and
does not apply to bohr image build --dockerfile.
Remote build and commit are resource operations charged from balance under the Sandbox pricing catalog. Inspect price shape and authorize spending first:
bohr billing pricing --resource sandbox -o json
bohr image build --mode remote --dockerfile ./Dockerfile --name project/image:v1 \
--project-id <project_id> --wait --yes -o json
bohr image commit --sandbox-id <sandbox_id> --name project/snapshot:v1 \
--project-id <project_id> --wait --yes -o json
Use immutable names rather than a mutable latest tag. Remote build sends only the
selected Dockerfile text for a remote build, without local build context;
commit snapshots the selected running sandbox container's root filesystem on the server.
Neither uses a local Docker image. Confirm
the exact local file, sandbox, owning project, name, and spending authorization.
For remote builds and sandbox commits without --wait, capture the returned
image ID and follow it with:
bohr image build-log <image_id> --follow
bohr image status <image_id> -o json
bohr image dockerfile <image_id>
Creating (0) and pending (1) are non-terminal. Image status 2 is success,
status 3 is failed, and status 4 is canceled. --wait stops on 2/3/4;
bound it with --wait-timeout. A local timeout does not prove the remote build
stopped.
Delete is destructive:
bohr image delete <image_id> --yes -o json
The current CLI has no share/unshare or metadata-update command. Read
references/commands.md for the full command set,
flags, local/remote effects, billing, and lifecycle completion.
Resource actions marked balance-only keep their existing balance billing. The
global --payment-source option does not enable photon billing for these
resources; explicitly selecting photon on a balance-only action is rejected
before execution. Use the existing resource pricing/authorization workflow.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/bohrium-skills:bohrium-imagefrom bohrium-skills
npx claudepluginhub dptech-corp/bohrium-skills --plugin bohrium-skills18 skills in this plugin
/bohrium-databaseQuery Bohrium scientific databases with `bohr database`: browse polymer records, search crystal structures, or inspect and query private tabular databases by db_ak and table_ak. Use for Bohrium database, 私有数据库, polymer library, crystal structure search, table schema, or filtered row queries./bohrium-datasetCreate, list, inspect, version, download, resume, or delete Bohrium datasets with `bohr dataset`. Use for 数据集, dataset uploads, dataset IDs/version IDs, project-owned data, dataset sharing/permissions, resumable transfers, or archives. Use `bohr file` for personal/share disk objects that are not dataset versions./bohrium-fileManage files and directories on Bohrium personal or project-share disks with `bohr file`: list, stat, download, upload, mkdir, copy, move, or delete. Use for personal/, share/, 云盘文件, project shared storage, recursive prefixes, and local/remote file transfer. Use Dataset commands for versioned datasets./bohrium-jobSubmit, list, inspect, stop, delete, download, or group Bohrium compute jobs with `bohr job` and `bohr job-group`. Use for BOHR_ID, machine/image selection, scientific batch computation, job status, logs/results, queued cancellation, running termination, or job-group lifecycle./bohrium-knowledge-baseCreate, list, search, upload to, or delete Bohrium knowledge bases and manage their documents with `bohr kb`. Use for 知识库, KB content search, document IDs, folder/root node IDs, local document upload, or safe document deletion. Use paper search for the public literature catalog and LKM for claim graphs./bohrium-lkmSearch and trace scientific claims, reasoning chains, paper knowledge graphs, and extracted variables with the `bohr lkm` CLI, or asynchronously extract research questions and reasoning from a local PDF. Use for Bohrium LKM, Large Knowledge Model, 大知识模型, claim provenance, paper graphs, or LKM PDF extraction. Use `bohr paper`, `bohr kb`, or `bohr pdf` for adjacent paper search, personal knowledge-base, or document-layout tasks.Other plugins' skills for the same job