version docker file code example Example 1: check docker version docker version Example 2: docker current version docker --version