how to get the docker version code example Example 1: check docker version docker version Example 2: docker current version docker --version