How to remove docker completely from ubuntu 14.04

后端 未结 5 1099
我在风中等你
我在风中等你 2021-01-30 07:03

I installed Docker on Ubuntu a while back but when I tried to remove, the Docker still exists in the system. I followed this https://stackoverflow.com/a/31313851/2340159 but did

5条回答
  •  花落未央
    2021-01-30 07:46

    @miyuru. As suggested by him run all the steps.

    Ubuntu version 16.04

    Still when I ran docker --version it was returning a version. So to uninstall it completely

    Again run the dpkg -l | grep -i docker which will list package still there in system.

    For example:

    ii  docker-ce-cli      5:19.03.6~3-0~ubuntu-xenial               
    amd64        Docker CLI: the open-source application container engine
    

    Now remove them as show below :

    sudo apt-get purge -y docker-ce-cli
    
    sudo apt-get autoremove -y --purge docker-ce-cli
    
    sudo apt-get autoclean
    

    Hope this will resolve it, as it did in my case.

提交回复
热议问题