I have some trouble uninstalling docker. I have used the instructions from here to add a newer docker version which has GPU support (version >19.03).
I have managed to install docker but I know need to uninstall it to get a newer version (I need to use 19.03.12 while now I am using 19.03.8).
The actual installation include these steps:
curl -fsSL https://test.docker.com -o test-docker.sh
sh test-docker.sh
The problem is that apt-get does not seem to find docker installed:
sudo apt-get install --only-upgrade docker
Reading package lists... Done
Building dependency tree
Reading state information... Done Skipping docker, it is not
installed and only upgrades are requested. 0 upgraded, 0 newly installed, 0 to remove and 356 not upgraded.
Is there a way to uninstall the docker version I am having on my system?
I am using Ubuntu 16.04.
Edit:
in this script there is a warning that is propagated if docker command is found on the system and if so that there might be problem if continuing with the installation. I didn't catch it and did not stop the installation. I don't know if this is helpful but I am pointing it out.
Edit2:
The output of
dpkg -l|grep docker
rc docker 1.5-1 amd64 System tray for KDE3/GNOME2 docklet applications
ii docker-ce 5:19.03.12~3-0~ubuntu-xenial amd64 Docker: the open-source application container engine
ii docker-ce-cli 5:19.03.8~3-0~ubuntu-xenial amd64 Docker CLI: the open-source application container engine
dpkg -l|grep dockershow?