Documentation
¶
Index ¶
- Constants
- func DetectDockerAPIVersion(ctx context.Context, dockerClient *client.Client) string
- func IsDockerAPIVersionAtLeast(current, minimum string) bool
- func IsInternalContainer(labels map[string]string) bool
- func SanitizeContainerCreateEndpointSettingsForDockerAPI(endpoints map[string]*network.EndpointSettings, apiVersion string) map[string]*network.EndpointSettings
- func SupportsDockerCreatePerNetworkMACAddress(apiVersion string) bool
Constants ¶
const (
InternalResourceLabel = "com.getarcaneapp.internal.resource"
)
Internal containers indicate containers used for arcanes utilties, ie: temp containers used for viewing files for volumes etc
const NetworkScopedMacAddressMinAPIVersion = "1.44"
Variables ¶
This section is empty.
Functions ¶
func DetectDockerAPIVersion ¶
DetectDockerAPIVersion returns the negotiated client API version when available, and falls back to querying the daemon server version.
func IsDockerAPIVersionAtLeast ¶
IsDockerAPIVersionAtLeast performs numeric dot-segment comparison for Docker API versions (e.g. "1.43", "1.44.1"). Returns false when either version cannot be parsed.
func IsInternalContainer ¶
func SanitizeContainerCreateEndpointSettingsForDockerAPI ¶
func SanitizeContainerCreateEndpointSettingsForDockerAPI(endpoints map[string]*network.EndpointSettings, apiVersion string) map[string]*network.EndpointSettings
SanitizeContainerCreateEndpointSettingsForDockerAPI clones endpoint settings for container recreate and removes per-network mac-address when daemon API does not support it (API < 1.44).
func SupportsDockerCreatePerNetworkMACAddress ¶
SupportsDockerCreatePerNetworkMACAddress reports whether the daemon API supports per-network mac-address on container create (Docker API >= 1.44).
Types ¶
This section is empty.