Shell/Bash: remove docker ubuntu Example
Shell/Bash Example: This is the "remove docker ubuntu" Example. compiled from many sources on the internet by SimpleTutorials.org
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.
how to stop docker in ubuntu
sudo systemctl stop docker #To stop docker from terminal.
install docker ubuntu
sudo apt install docker.io
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
Package 'docker-ce' is not installed, so not removed
dpkg -l | grep -i docker
* Summary: This "remove docker ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!