Older versions of Docker were called docker or docker-engine or docker.io
docker-io package was the name used on Debian/Ubuntu for the official docker release.
Main reason was to avoid a name conflict with Ubuntu docker system-tray binary.
Docker now has an enterprise version (EE) and a free community Edition version(CE)
Prior to installing Docker Community Edition you would need to remove older binaries.
Centos/RHL:
https://docs.docker.com/engine/installation/linux/docker-ce/centos/
sudo yum remove docker \
docker-common \
docker-selinux \
docker-engine