title: Uninstall docker version installed via script
body: <p>I have some trouble uninstalling docker. I have used the instructions from <a href="https://collabnix.com/introducing-new-docker-cli-api-support-for-nvidia-gpus-under-docker-engine-19-03-0-beta-release/" rel="nofollow noreferrer">here</a> to add a newer docker version which has GPU support (version &gt;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).<br />
  The actual installation include these steps:</p>
  <pre><code>curl -fsSL https://test.docker.com -o test-docker.sh
  sh test-docker.sh
  </code></pre>
  <p>The problem is that apt-get does not seem to find docker installed:</p>
  <pre><code>sudo apt-get install --only-upgrade docker
  </code></pre>
  <blockquote>
  <p>Reading package lists... Done<br />
  Building dependency tree<br />
  Reading state information... Done   Skipping docker, it is not<br />
  installed and only upgrades are requested.   0 upgraded, 0 newly
  installed, 0 to remove and 356 not upgraded.</p>
  </blockquote>
  <p>Is there a way to uninstall the docker version I am having on my system?</p>
  <p>I am using Ubuntu 16.04.</p>
  <p>Edit:</p>
  <p>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.</p>
  <p>Edit2:</p>
  <p>The output of</p>
  <pre><code>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
  </code></pre>