If docker was installed from an old Ubuntu version it is best to
apt purge docker.io
(or widget docker it is) first. You can see what it is with
dpkg -l |grep docker
If docker was installed from an old Ubuntu version it is best to
apt purge docker.io
(or widget docker it is) first. You can see what it is with
dpkg -l |grep docker