bhatti image share
bhatti image share server only
Section titled “bhatti image share ”Share an image with one or more specific users.
Synopsis
Section titled “Synopsis”bhatti image share <image-name> --user <name> [--user <name>]... bhatti image share <image-name> --list
Description
Section titled “Description”Adds an entry to the image-share table for each <user> so that user can reference the image with --image <name> from their sandbox creation calls. Sharing is per-user; there’s no “public” or “everyone” mode.
The command operates directly on the server’s SQLite database — it isn’t an HTTP API call. You must run it on the server, with access to /var/lib/bhatti/state.db (typically as sudo).
--list prints the users an image is currently shared with. --unshare is its own command, bhatti image unshare.
Examples
Section titled “Examples”# Share with two userssudo bhatti image share spc-golden --user kowshik --user sumoshared "spc-golden" with: kowshik, sumo# Inspect current sharessudo bhatti image share spc-golden --listspc-golden shared with: kowshik, sumo# Image not yet sharedsudo bhatti image share spc-golden --listspc-golden: not sharedOptions
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--user <name> | — | User to share with. Repeatable. Required unless --list. |
--list | false | Print current shares for the image instead of adding new ones. |
See Global flags for --url, --token, --json, --timing, --data-dir.
Failure modes
Section titled “Failure modes”- Image not found: bhatti can’t see your image because of name typos or because it’s owned by a different user. Check with
bhatti image list. - User not found: the
<name>doesn’t match any user. Check withbhatti user list. - No
--user: the command refuses to do anything without an explicit user list (or--list). There’s no global “share with all” mode.
See also
Section titled “See also”bhatti image unshare— revoke accessbhatti user list— find usernames