uninstall docker from ubuntu code example
Example 1: how to uninstall python2.7 from ubuntu 18.04
sudo apt autoremove python
Example 2: install kubernetes on ubuntu
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/
minikube start --driver=none
sudo apt install conntrack
sudo minikube start --driver=none
sudo minikube status
sudo chown -R $USER $HOME/.kube
sudo chown -R $USER $HOME/.minikube
Example 3: install docker ubuntu
sudo apt install docker.io
Example 4: 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
Example 5: Package 'docker-ce' is not installed, so not removed
dpkg -l | grep -i docker