Symptoms
Docker service is still running under OS after removing Docker extension via Plesk UI:
# systemctl status docker.service | grep Active
Active: active (running) since Sat 2022-01-25 17:32:45 UTC; 4min 4s ago
Why docker0 network interface still remains on the server after extension removal?
Cause
Expected behavior because Docker service can be used independently from Plesk.
Deletion of the Plesk Docker extension removes only integration between Plesk and Docker service.
Resolution
In case it is required to remove the Docker service completely, apply one of the solutions below:
Note: Server reboot is required to remove Docker completely. Also user data and sites can be affected by the full removal of Docker.
For Debian based systems (Ubuntu/Debian)
Log into the server via SSH.
Execute the command below to find the Docker related packages:
# dpkg -l | grep -i docker | awk {'print $2'}
docker-ce
docker-ce-cliRemove the found packages from step 2:
# apt-get remove --purge docker-ce
# apt-get remove --purge docker-ce-cli
Reboot server by executing the next command:
# reboot
For RHEL based systems (CentOS/CloudLinux)
Log into the server via SSH.
Execute the command below to find the Docker related packages:
# rpm -qa | grep -i docker
docker-ce-cli-19.03.12-3.el7.x86_64
docker-ce-19.03.12-3.el7.x86_64Remove the found package from step 2 by executing commands below one by one:
# rpm -e docker-ce-19.03.12-3.el7.x86_64 --nodeps
# rpm -e docker-ce-cli-19.03.12-3.el7.x86_64 --nodeps
Reboot server by executing the next command:
# reboot