check if docker is installed ubuntu

C++
$ docker -v

Source

Also in C++: