I installed Docker through CyberPanel but it installs a version that is incompatible with a container I want to use. How can I uninstall the Docker installed by CyberPanel so I can install the latest docker manually?
Or can I…
You can use your OS package manager to remove and install Docker, CyberPanel will obey.
How can I uninstall Docker from in cyberpanel? I installed it directly through the panel
To completely uninstall Docker:
dpkg -l | grep -i docker
To identify what installed package you have:
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
I followed the following steps instead:
apt-get purge -y docker* && rm -rf /var/lib/docker /etc/docker && apt-get autoremove -y
Docker was completely uninstalled.