Articles in this section

Docker service is still running on server when Docker extension was removed from Plesk

Plesk for Linux ext: docker

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)
  1. Log into the server via SSH.

  2. Execute the command below to find the Docker related packages:

    # dpkg -l | grep -i docker | awk {'print $2'}

    docker-ce
    docker-ce-cli

  3. Remove the found packages from step 2:

    # apt-get remove --purge docker-ce

    # apt-get remove --purge docker-ce-cli

  4. Reboot server by executing the next command:

    # reboot

For RHEL based systems (CentOS/CloudLinux)
  1. Log into the server via SSH.

  2. 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_64

  3. Remove 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

  4. Reboot server by executing the next command:

    # reboot

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.