How to get the Docker version using the Remote API -


is possible docker service version using remote api, is, similar passing version parameter command line client?

docker --version 

yes; it's the /version endpoint.

from 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 } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -