Reputation: 14555
Is it possible to get the Docker service version using the Remote API, that is, something similar to passing the version parameter to the command line client?
docker --version
Upvotes: 0
Views: 1310
Reputation: 55293
Yes; it's the /version
endpoint.
From the docs:
Example request:
GET /version HTTP/1.1
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "Version": "1.5.0", "Os": "linux", "KernelVersion": "3.18.5-tinycore64", "GoVersion": "go1.4.1", "GitCommit": "a8a31ef", "Arch": "amd64", "ApiVersion": "1.20", "Experimental": false }
Upvotes: 1