Documentation ¶
Overview ¶
Package docker provides the ability for Vela to integrate with Docker as a runtime environment.
Usage:
import "github.com/go-vela/pkg-runtime/runtime/docker"
Index ¶
Constants ¶
const Version = "v1.40"
nolint: godot // ignore comment ending in a list
Version represents the supported Docker API version for the mock.
The Docker API version is pinned to ensure compatibility between the Docker API and client. The goal is to maintain n-1 compatibility.
The maximum supported Docker API version for the client is here:
https://docs.docker.com/engine/api/#api-version-matrix
For example (use the compatibility matrix above for reference):
* the Docker version of v20.10 has a maximum API version of v1.41 * to maintain n-1, the API version is pinned to v1.40
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOpt ¶ added in v0.8.0
type ClientOpt func(*client) error
ClientOpt represents a configuration option to initialize the runtime client.
func WithHostVolumes ¶ added in v0.8.0
WithHostVolumes sets the Docker host volumes in the runtime client.
func WithPrivilegedImages ¶ added in v0.8.0
WithPrivilegedImages sets the Docker privileged images in the runtime client.