On ubuntu you might get the following error if you try to install docker-ce-cli
Unable to locate package docker-ce-cli
Then add the repo to your apt source list
Ref:
https://unix.stackexchange.com/questions/363048/unable-to-locate-package-docker-ce-on-a-64bit-ubuntu