• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Docker not working - Local Docker nodes cannot be deployed

Smir

New Pleskian
Had a test server same setup, everything worked fine, decided to upgrade on the main server and doesn't seem to want to work?

Some info below..


root@lon:~# plesk version
Product version: Plesk Onyx 17.0.17 Update #7
Update date: 2016/11/22 22:53
Build date: 2016/11/17 16:00
OS version: Ubuntu 14.04
Revision: ab6766191d3ba26e7b21255ab007fc7fc56d84c6
Architecture: 64-bit
Wrapper version: 1.2

root@lon:~# mount
/dev/ploop39490p1 on / type ext4 (rw,relatime,barrier=1,data=ordered,balloon_ino=12)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
none on /run type tmpfs (rw,nosuid,noexec,relatime,size=629148k,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
root@lon:~#

any ideas or things I can try?
 
Hi Smir,

first you should check, if DOCKER is actually active and running:

ps aux | grep docker
service docker status

Second, pls. inspect the "docker.log" ( located at "/var/log/upstart/" if you use "upstart" on Debian/Ubuntu - based systems ) and make sure, that no SELinux policies, nor apparmor, nor a firewall policy blocks the docker usage.
 
Code:
root@lon:~# ps aux | grep docker
root     23306  0.0  0.0   8812   776 pts/0    S+   17:59   0:00 grep --color=auto docker
root@lon:~# service docker status
docker: unrecognized service
root@lon:~#

so docker isn't even installed? o.0 no docker.log either,

is there a way to find out why it's not installing? I even tried removing/installing it again and got the same issue.
 
Hi Smir,

so docker isn't even installed?
nope, it isn't. :rolleyes:

I even tried removing/installing it again
Which steps did you do?



What is the ouput of

plesk installer --select-product-id plesk --select-release-current --show-components --show-options

AND

dpkg -l | grep docker

... AFTER you installed it the way you did?
 
installed it via the Extensions in Plesk (worked fine before on test server same confiig)

plesk installer --select-product-id plesk --select-release-current --show-components --show-options
Code:
BUSY: Update operation was locked by another update process.
exit status 1


dpkg -l | grep docker

showed nothing... at all>.<
 
Hi Smir,

BUSY: Update operation was locked by another update process.
hehe... oki... your autoinstaller is currently "busy"... pls. repeat the command later again, when the tasks has been finished.

If you are sure, that there is no current autoinstaller - process, you might have unfinished, or even orphaned processes. You can check your processes with the help of "ps".

Example commands:

Show all current running processes:

ps -aux

Show all current running processes for the Plesk - autoinstaller:

ps -aux | grep autoinstaller

Each linux - process has a UNIQUE PID - ID ( displayed in the second row of your "ps" - command, right after the username, who owns the process ) which you are able to "kill" with the example - command:

kill -9 PID-NUMBER

NOTE: Consider to "kill" processes only when you are sure, that this must be an unwanted left-over, because interrupting current working processes may lead to issues/problems/errors!



After you can confirm, that there are no other "autoinstaller" - processes, you are as well able to install the Plesk - docker - components over your command line, as for example with:

plesk installer --select-product-id plesk --select-release-current --install-component docker
 
Guess this has something to do with it not installing as it should?..

Code:
Fetched 6828 B in 2s (3131 B/s)
Reading package lists...
W: Duplicate sources.list entry http://autoinstall.plesk.com/ubuntu/PMM_0.1.10/                                                                                                                                                              trusty/all amd64 Packages (/var/lib/apt/lists/autoinstall.plesk.com_ubuntu_PMM%5                                                                                                                                                             f0.1.10_dists_trusty_all_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
Retrieving information about the installed license key...
You already have the latest version of product(s) and all the selected component                                                                                                                                                             s
installed. Installation will not continue.
apt-get update

Didn't fix the issue =-/
 
#'s out the duplicate,

did the docker install... and...

Retrieving information about the installed license key...
You already have the latest version of product(s) and all the selected components
installed. Installation will not continue.

deleted from the Extension, and re-did the command with the same out come
 
Hi Smir,

pls. don't care about messages like "Duplicate sources.list entry http://autoinstall.plesk.com/ubuntu/PMM_0.1.10/" - these "duplicates" only exist temporarily, when you use Plesk.


Consider to add mirror - sources for Plesk, for several reasons. You will experience less issues with your package management in the future. ;)


Here are some examples, which you can place as ADDITIONAL "*.list" inside the folder "/etc/apt/sources.list.d/"

For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk_17.0.17_trusty.list" :
Code:
########## START    ADDITIONAL Plesk repositories and third party repositories for Plesk FOR UBUNTU TRUSTY ( 14.04 ) ##########

deb http://updates.atomicorp.com/channels/tortix-common/debian trusty main
# deb-src http://updates.atomicorp.com/channels/tortix-common/debian trusty main

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.0.17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.0.17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.0.17 trusty extras
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PSA_17.0.17 trusty extras

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP52_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP52_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP53_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP53_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP54_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP54_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP55_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP55_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP56_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP56_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP70_17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PHP70_17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/NGINX17 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/NGINX17 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PMM_0.1.10 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/PMM_0.1.10 trusty all

deb http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/LETSENCRYPT_0.0.2 trusty all
# deb-src http://ftp.hosteurope.de/mirror/autoinstall.plesk.com/ubuntu/LETSENCRYPT_0.0.2 trusty all

#########END        ADDITIONAL Plesk repositories and third party repositories for Plesk FOR UBUNTU TRUSTY ( 14.04 ) ##########

STANDARD Plesk - sources - lists:

For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk.list" :
Code:
## Persistent repositories for Plesk Products.
deb http://autoinstall.plesk.com/ubuntu/PSA_17.0.17 trusty extras
deb http://autoinstall.plesk.com/ubuntu/PHP52_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/PHP53_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/PHP54_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/PHP55_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/PHP56_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/PHP70_17 trusty all
deb http://autoinstall.plesk.com/ubuntu/NGINX17 trusty all


For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk-ext-docker.list" :
Code:
deb https://apt.dockerproject.org/repo ubuntu-trusty main


For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk-ext-nodejs.list" :
Code:
deb [arch=amd64] http://autoinstall.plesk.com/debian/NODE_0.0.1 all all


For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk-ext-ruby.list" :
Code:
deb [arch=amd64] http://autoinstall.plesk.com/ubuntu/RUBY_0.0.1 trusty all


For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk-letsencrypt.list" :
Code:
deb [arch=amd64] http://autoinstall.plesk.com/ubuntu/LETSENCRYPT_0.0.2 trusty all


For Plesk Onyx ( 17.0 ) and Ubuntu 14.04, example name: "plesk-migrator.list" :
Code:
deb [arch=amd64] http://autoinstall.plesk.com/ubuntu/PMM_0.1.10 trusty all


Pls. be informed, that after you added source - lists, you have to run the command "apt-get update".​



P.S.: You still didn't provide the informations from the command: plesk installer --select-product-id plesk --select-release-current --show-components --show-options
 
Hi Smir,

with the assumption, that you already upgraded your kernel by now, pls. install docker with "apt-get":

Code:
apt-get install apt-transport-https ca-certificates

apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
( You can leave out this command, when you already added the source - list "plesk-ext-docker.list" as suggested above! )

apt-get update

apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual

To complete this installation, it is now necessary to REBOOT your server!


After your reboot, you can now use the command:
Code:
apt-get install docker-engine


Assuming, that this all worked without issues, you are now able to start docker with "service docker start" and make sure, that no SELinux policy, nor apparmor blocks the service.


When the docker - service is running, pls. consider to repeat the command:
Code:
plesk installer --select-product-id plesk --select-release-current --install-component docker
 
When running
apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
Code:
root@lon:~# apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-extra-2.6.32-042stab116.1
E: Couldn't find any package by regex 'linux-image-extra-2.6.32-042stab116.1'

Done everything previously listed,
 
Code:
root@lon:~# uname -r
2.6.32-042stab116.1

http://pastebin.com/SPu5XbZY

Code:
root@lon:~# ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
error: cannot find kernel config
  try running this script again, specifying the kernel config:
    CONFIG=/path/to/kernel/.config ./check-config.sh or ./check-config.sh /path/to/kernel/.config
 
Hi Smir,

after your kernel - upgrade, did you REBOOT your server?

Kernel configs can be found with for example "locate .config | grep linux-header".
 
Last edited by a moderator:
kernel upgrade?... you mean the

locate .config | grep linux-headers
shows nothing

I did reboot the system, but the following command didnt work before hand

apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
 
Hi Smir,

just for your information, the "mlocate" - database gets no updates on it's own, so you have to make sure, that the command "updatedb" is excecuted on a regular basis ( we use for example a cronjob every 30 minutes with this command for the user "root" on our servers ). If you want to make sure, that the "mlocate" - database is completely up-to-date, when you use the "locate" - command, you might consider to update the database right before the "locate" - command. ;)

I corrected my above suggestion to "locate .config | grep linux-header". :)
 
locate .config | grep linux-header​

shows nothing, even after doing the updatedb command
 
I have another server exactly the same, for testing, doesn't have any live sites, and docker works fine on it...?

http://puu.sh/swA3x/edb407dc7e.png

that's why I'm lost as to why it isn't working here, everything installed the same, expect the test server was set up with Plesk Onyx, whereas the live server was setup with Plesk 12.

Docker is running currently, but in Plesk Onyx it's stating; The Docker service is unavailable: Cannot read the response - which is a different error then before

I guess Plesk doesn't have permission to run/view it?
 
Back
Top