get docker version code example
Example 1: check docker version
docker version
Example 2: docker current version
docker --version
Example 3: docker for linux
$ sudo apt-get remove docker docker-engine docker.io containerd runc
docker version
docker --version
$ sudo apt-get remove docker docker-engine docker.io containerd runc