Answers for "uninstall docker ubuntu"

3

remove docker ubuntu

To completely uninstall Docker:

Step 1

dpkg -l | grep -i docker
To identify what installed package you have:

Step 2

sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce  
The above commands will not remove images, containers, volumes, or user created configuration files on your host. If you wish to delete all images, containers, and volumes run the following commands:

sudo rm -rf /var/lib/docker /etc/docker
sudo rm /etc/apparmor.d/docker
sudo groupdel docker
sudo rm -rf /var/run/docker.sock
You have removed Docker from the system completely.
Posted by: Guest on May-06-2021
0

Package 'docker-ce' is not installed, so not removed

sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce
Posted by: Guest on July-30-2020
2

install docker in ubuntu

$ sudo apt-get remove docker docker-engine docker.io
$ sudo apt-get update
$ sudo apt install docker.io
$ sudo snap install docker
$ docker --version
Posted by: Guest on December-22-2020
0

Package 'docker-ce' is not installed, so not removed

sudo rm -rf /var/lib/docker /etc/docker
sudo rm /etc/apparmor.d/docker
sudo groupdel docker
sudo rm -rf /var/run/docker.sock
Posted by: Guest on July-30-2020
3

install docker ubuntu

sudo apt install docker.io -y
Posted by: Guest on September-17-2020
4

uninstall docker ubuntu

$ sudo apt-get remove docker docker-engine docker.io containerd runc
Posted by: Guest on May-07-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language