Linux.Applications.Docker.Version
Type: Client
Connects to the Docker socket and retrieves daemon version details including API and kernel versions.
Implied permissions: NETWORK
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dockerSocket |
string | /var/run/docker.sock |
Docker server socket. You will normally need to be root to connect. |
Source
Defined in artifacts/definitions/Linux/Applications/Docker/Version.yaml.
name: Linux.Applications.Docker.Version
description: |
Connects to the Docker socket and retrieves daemon version details
including API and kernel versions.
parameters:
- name: dockerSocket
description: |
Docker server socket. You will normally need to be root to connect.
default: /var/run/docker.sock
implied_permissions:
- NETWORK
sources:
- precondition: |
SELECT OS From info() where OS = 'linux'
query: |
LET data = SELECT parse_json(data=Content) as JSON
FROM http_client(url=dockerSocket + ":unix/version")
SELECT JSON.Version as Version,
JSON.ApiVersion as ApiVersion,
JSON.MinAPIVersion as MinAPIVersion,
JSON.GitCommit as GitCommit,
JSON.GoVersion as GoVersion,
JSON.Os as Os,
JSON.Arch as Arch,
JSON.KernelVersion as KernelVersion,
JSON.BuildTime as BuildTime
FROM data