linux where docker is installed code example
Example 1: docker ubuntu installation
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Example 2: apt install docker
$ sudo apt-get remove docker docker-engine docker.io containerd runc