remove docker ubuntu 1

remove docker ubuntu

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

Here is what the above code is Doing:
1. Update the apt package index.
2. Install packages to allow apt to use a repository over HTTPS.
3. Add Docker’s official GPG key.
4. Set up the stable repository.
5. Update the apt package index.
6. Install the latest version of Docker CE.
7. Allow your user to access the Docker CLI without needing root access.
8. Verify that Docker CE is installed correctly by running the hello-world image.

Similar Posts