3

I have installed docker as described here raspberrypi.org/blog/docker-comes-to-raspberry-pi with curl -sSL https://get.docker.com | sh. How do I uninstall it?

  • 1
    For posterity, this is the wrong way to install now that docker is in the Raspbian repos. – goldilocks Mar 11 '18 at 19:39
  • 1
    That doesn't help now does it... – joelfischerr Mar 12 '18 at 7:05
7

I had to use sudo apt remove docker-ce. The script at get.docker.com runs "$pkg_manager install -y -q docker-ce$pkg_version" so docker-ce is the package, not docker.

  • 1
    "docker -v" still worked. I did "sudo apt autoremove" to get rid of it entirely. – andy Dec 3 '18 at 10:44
2

Uninstall it by using

apt remove docker -y

Hope that helps.

  • Worth noting that the script sourced by curl | sh appears to use apt-get, which is why apt remove is appropriate. – goldilocks Mar 11 '18 at 19:33
  • Does that work when docker was not installed with apt? – joelfischerr Mar 11 '18 at 19:34
  • It does not: "Package 'docker' is not installed, so not removed" – joelfischerr Mar 11 '18 at 19:34
  • Well, it very well could have, if you go look at it. What it does if it didn't will be harder to figure out. You might check dpkg -l | grep docker to see if it used a package with a more convoluted name. – goldilocks Mar 11 '18 at 19:37
  • After that I did sudo dpkg --purge docker-ce – Firsh - LetsWP.io Jan 20 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.