TITLE:
Docker extension issue - docker daemon running continuously, even after uninstall
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Product version: Plesk Onyx 17.8.11 Update #70
Update date: 2019/10/09 02:43
Build date: 2019/10/03 04:49
OS version: Ubuntu 18.04
Revision: dace57d4eda000639cf29e8db0a5e38ae84b76e4
Architecture: 64-bit
Wrapper version: 1.2
Also appliers for other Ubuntu and Plesk releases - did not check Obsidian.
PROBLEM DESCRIPTION:Update date: 2019/10/09 02:43
Build date: 2019/10/03 04:49
OS version: Ubuntu 18.04
Revision: dace57d4eda000639cf29e8db0a5e38ae84b76e4
Architecture: 64-bit
Wrapper version: 1.2
Also appliers for other Ubuntu and Plesk releases - did not check Obsidian.
Installing docker extension results in a running docker daemon.
ISSUE 1 : The docker daemon uses memory, even if no container is present.
ISSUE 2 : Docker daemon keeps running, even after deletion of the extension!
SUMMARY : memory overusage - there is no need for that!
ISSUE 3 - Deletion : after uninstalling the docker extension, the packages
- docker-ce
- docker-ce-cli
- containerd.io
are left behind : they have not been removed.
STEPS TO REPRODUCE:ISSUE 1 : The docker daemon uses memory, even if no container is present.
ISSUE 2 : Docker daemon keeps running, even after deletion of the extension!
SUMMARY : memory overusage - there is no need for that!
ISSUE 3 - Deletion : after uninstalling the docker extension, the packages
- docker-ce
- docker-ce-cli
- containerd.io
are left behind : they have not been removed.
STR - ISSUE 1 :
1 - Install Docker extension
2 - run command : docker ps -a
3 - result is a table without containers - as expected
4 - run command : service docker status
5 - result is : service is active - this is not necessary if containers are absent.
STR - ISSUE 2 :
1 - follow steps 1 to 5 under "STR - ISSUE 1", if that is not done already
2 - run command : plesk bin extension -u docker
3 - result is : The extension was successfully removed.
4 - run command : ps aux | grep docker
5 - result is : a docker (daemon) process is still present
6 - run command : service docker status
7 - result is : service is active - this is not good if the extension is deleted.
8 - run command : dpkg -l | grep container
9 - result is : packages docker-ce, docker-ce-cli and containerd.io are still installed - this is not good : see additional information.
NOTE - verify memory usage
1 - run command : ps aux | grep docker
2 - run command : htop -p [pid docker daemon found in step 1]
ACTUAL RESULT:1 - Install Docker extension
2 - run command : docker ps -a
3 - result is a table without containers - as expected
4 - run command : service docker status
5 - result is : service is active - this is not necessary if containers are absent.
STR - ISSUE 2 :
1 - follow steps 1 to 5 under "STR - ISSUE 1", if that is not done already
2 - run command : plesk bin extension -u docker
3 - result is : The extension was successfully removed.
4 - run command : ps aux | grep docker
5 - result is : a docker (daemon) process is still present
6 - run command : service docker status
7 - result is : service is active - this is not good if the extension is deleted.
8 - run command : dpkg -l | grep container
9 - result is : packages docker-ce, docker-ce-cli and containerd.io are still installed - this is not good : see additional information.
NOTE - verify memory usage
1 - run command : ps aux | grep docker
2 - run command : htop -p [pid docker daemon found in step 1]
Results are given in the STR - see above.
EXPECTED RESULT:Docker daemon should be
a) after installation and before activation of containers :
- inactive : command service docker status should return inactive state
- inactive : command systemctl list-unit-files | grep docker should return the value enabled
AND
b) after uninstallation via command plesk bin extension -u docker resulting in :
- the disabled state, equivalent to running : systemctl disable docker
- a cleanup of packages, equivalent to running : apt-get purge containerd.io docker-ce docker-ce-cli
ANY ADDITIONAL INFORMATION:a) after installation and before activation of containers :
- inactive : command service docker status should return inactive state
- inactive : command systemctl list-unit-files | grep docker should return the value enabled
AND
b) after uninstallation via command plesk bin extension -u docker resulting in :
- the disabled state, equivalent to running : systemctl disable docker
- a cleanup of packages, equivalent to running : apt-get purge containerd.io docker-ce docker-ce-cli
Additional testing suggests that a multitude of minor problems can occur if the containerd.io package is not removed, even if docker-ce and docker-ce- cli packages are removed.
A reinstall of the Docker extension will install docker-ce and docker-ce-clie without issues.
However, the Docker extension will not be installed due to conflicts related to the remaining package containerd.io - that is a serious problem : running from the CLI, one gets sufficient information to take appropriate actions, but the Plesk Panel method of installing the Docker extension does not give sufficient information to act appropriately.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:A reinstall of the Docker extension will install docker-ce and docker-ce-clie without issues.
However, the Docker extension will not be installed due to conflicts related to the remaining package containerd.io - that is a serious problem : running from the CLI, one gets sufficient information to take appropriate actions, but the Plesk Panel method of installing the Docker extension does not give sufficient information to act appropriately.
Confirm bug