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