Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = UIDGID{UID: 0, GID: 0}
Root is a root:root user.
Functions ¶
func CheckVersion ¶
CheckVersion is used to check if docker is running. We use this method instead of checkExecutable (https://sourcegraph.com/github.com/sourcegraph/src-cli@main/-/blob/cmd/src/batch_common.go?L547%3A6=&popover=pinned) to prevent a case where docker commands take too long and results in `src-cli` freezing for some users.
func CurrentContext ¶
CurrentContext returns the name of the current Docker context (not to be confused with a Go context).
Types ¶
type Image ¶
type Image interface { Digest(context.Context) (string, error) Ensure(context.Context) error UIDGID(context.Context) (UIDGID, error) }
Image represents a Docker image, hopefully stored in the local cache.
type ImageCache ¶
Click to show internal directories.
Click to hide internal directories.