DEV Community

Cover image for Uninstall docker that was install with Ubuntu software
Sebastian
Sebastian

Posted on

Uninstall docker that was install with Ubuntu software

If you install docker using the Ubuntu Software on the 22.04 version, when you try to uninstall docker, sometimes is not easy way to do it.

After a will I found how to do it.

  1. This will display a list of ongoing operations with their respective IDs:
    snap changes

  2. Find the ID of the operation you want to stop.

  3. Stop the operation using the snap abort command followed by the operation ID:
    sudo snap abort 19

  4. Stop the snapd service to ensure the changes are applied correctly. You can do it with the following commands:
    sudo systemctl stop snapd

  5. Uninstall Docker more forcefully using the following command:
    sudo snap remove --purge docker

  6. Start the snapd server:
    sudo systemctl start snapd

Happy coding 😎!!!

Top comments (0)