• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Unable to install Docker

straddi

Basic Pleskian
Server operating system version
Debian 11.7
Plesk version and microupdate number
Obsidian 18.0.51 Update #1
The attempt to install Docker via the extensions ends with the error message:

[2023-05-13 14:25:28.696] 49934:645f81a8b24d6 ERR [extension/docker] The execution of post-install.php has failed with the following message:
[2023-05-13 14:25:28.687] 50092:645f81b8a7944 ERR [extension/docker] Execution installer has failed with exit code 1, stdout: , stderr: ERROR:__main__:Command '['apt-get', '-q', '--assume-yes', '-o', 'Dpkg::Options::=--force-confdef', '-o', 'Dpkg::Options::=--force-confold', '-o', 'APT::Install-Recommends=no', '--purge', 'install', 'apt-transport-https', 'ca-certificates', 'gnupg2', 'software-properties-common']' returned non-zero exit status 100.

After that, Docer can be seen in Plesk in the left panel.
If you click on it, the error message appears:
Warning: Local Docker Node is missing. Read this KB article to solve the problem.
Remote nodes are only available in the paid version of the extension. You can buy the extension here.

I have already tried the following solution suggested in the forum

Remove the package, if still present and move its files:
# dpkg -P docker-ce
# mv /var/lib/docker /var/lib/docker_bk
Remove the repolist plesk-ext-docker.list, if still present:
# rm -f /etc/apt/sources.list.d/plesk-ext-docker.list
Install Docker extension again via Extensions > Extensions Catalog.

Unfortunately without success

Is there a solution
 
Have you tried uninstalling and reinstalling through SSH?

Bash:
plesk bin extension --uninstall docker
plesk bin extension --install docker

What does the logs show? You can find the logs at:
/var/log/plesk/install/autoinstaller3.log
/var/log/sw-cp-server/error_log
and
/var/log/sw-cp-server/sw-engine.log
 
I had also tried the cli installation. Also without success.
I found the following message around the time of the installation

Index of /PSA_18.0.45 bullseye InRelease
Get:2 Index of /debian-security bullseye-security InRelease [48.4 kB]
Hit:3 Index of /debian/SITEBUILDER_17.8.12 all I

[2023-05-13 13:20:37.777243] repository: Get brief packages info for all sources
[2023-05-13 13:20:37.777320] Checking for installed in extension catalog packages
[2023-05-13 13:20:37.777453] autoinstaller: read output of /usr/local/psa/bin/extension --list
[2023-05-13 13:20:37.946832] Detected installed extensions: 'advisor' 'composer' 'configurations-troubleshooter' 'dnssec' 'docker' 'domain-connect' 'firewall' 'git' 'google-authenticator' 'grafana' 'heavy-metal-skin' 'letsencrypt' 'log-browser' 'monitoring' 'nextcloud' 'pagespeed-insights' 'panel-ini-editor' 'panel-migrator' 'repair-kit' 'revisium-antivirus' 'sectigo' 'social-login' 'ssh-keys' 'ssh-terminal' 'sslit' 'symantec' 'wp-toolkit' 'xovi'
[2023-05-13 13:20:37.947432] DebianAPTConfigurator::prepareAvailablePackagesList()
[2023-05-13 13:20:38.146388] Detecting installed product components.

I uninstalled and installed again the following message was generated

Environment locale name is 'C'
[2023-05-14 12:26:21.311291]
Plesk Installer 3.51.0 (revision 9e7eb417a5e8) started at (timezone CET) Sun May 14 12:26:21 2023
Command line arguments: /usr/local/psa/admin/sbin/autoinstaller stop
[2023-05-14 12:26:21.311311] SourceUrl: original source url is Index of /
[2023-05-14 12:26:21.311328] SourceUrl: fixed url is Index of /
[2023-05-14 12:26:21.311665] Try to find rcfile...
[2023-05-14 12:26:21.311711] Autoinstaller found rcfile at /root/.autoinstallerrc
[2023-05-14 12:26:21.311932] Option from rc file:: 'SSL_PROTOCOLS' = 'TLSv1.2 TLSv1.3'
[2023-05-14 12:26:21.311954] Option from rc file:: 'SSL_CIPHER_SERVER_PREFERENCE' = 'no'
[2023-05-14 12:26:21.311968] Option from rc file:: 'SSL_CIPHERS' = 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384'
[2023-05-14 12:26:21.312491] Read component settings from /root/.autoinstaller/options.ini
[2023-05-14 12:26:21.314263] Got OS name Linux, vendor Debian, version 11.7, arch x86_64, environment vz

error.log:
[error] 60953#0: *1528 open() "/opt/psa/admin/htdocs/autodiscover/autodiscover.json" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /autodiscover/autodiscover.json?@zdi/Powershell HTTP/1.0", host: "Host nummer"
2023/05/14 12:30:32 [error] 60953#0: *1624 open() "/opt/psa/admin/htdocs/remote/login" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /remote/login HTTP/1.0", host: "Host numme"
2023/05/14 12:30:32 [error] 60953#0: *1625 open() "/opt/psa/admin/htdocs/remote/logincheck" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "POST /remote/logincheck HTTP/1.0", host: "Host numme"

I only have such entries in the sw-engine.log

[14-May-2023 12:31:10] NOTICE: [pool plesk] child 418211 started
[14-May-2023 12:31:13] NOTICE: [pool plesk] child 418093 exited with code 0 after 31.033978 seconds from start
[14-May-2023 12:31:13] NOTICE: [pool plesk] child 418227 started
[14-May-2023 12:31:14] NOTICE: [pool plesk] child 418097 exited with code 0 after 31.027316 seconds from start
[14-May-2023 12:31:14] NOTICE: [pool plesk] child 418231 started
 
I've tried the following again:

plesk bin extension --uninstall docker
plesk bin extension --install docker

and looked at the logs.

No log except sw-engine.log shows a change and it looks like this.

[15-May-2023 09:21:00] NOTICE: [pool plesk] child 757650 exited with code 0 after 57.053697 seconds from start
[15-May-2023 09:21:00] NOTICE: [pool plesk] child 759612 started
 
I tried to install some other extension. That works without any problems. I am completely at a loss. Another idea what I can do?
 
I couldn't replicate it on a brand new debian 11 server, only thing I can suggest is to open a ticket with Plesk support so they can access your server and see what's happening.
 
First of all, thank you very much for the effort you have made.

Could that be the reason?
Only this version of Virtuozzo is supported according to the documentation: Virtuozzo 7 with Update 1 Hotfix 1 (7.0.1-686) or later.
That was the key clue.
I contacted the provider. In principle, the Docker runs in their Virtuozzo environment, but the Provider first deactivate the possibility of Docker installation.
However, support can enable this.
I have made a request to that effect. I'll report back to the forum when I have an answer.
 
I received feedback from support that the docker function was activated.
The installation worked without any problems.
 
My environment in the log says ~empty and I see no way in my CentOS 7 self-managed VPS (VMware) to further enable this. How can I get docker to run?
 
Back
Top