• Ken Robertson's avatar
    Update container runtime to properly report the engine and version · a7b07c01
    Ken Robertson authored
    This address a TODO when collecting the node version information so it
    will properly report the configured runtime and its version. Previously,
    this was hardcoded to "docker://" and the docker version, and would show
    "docker://1.9.1" even when the kubelet was configured to use rkt.
    
    With this change, it will use the runtime's Type() and Version() data.
    
    This also changes the container.Runtime interface to add an APIVersion()
    method. This can be used when the runtime has separate versions for the
    engine and the API, such as with Docker. The Docker minimum version
    validation has been updated to use APIVersion(), and
    DockerManager.Version() now returns the engine version.
    a7b07c01
docker_test.go 25.1 KB