Mk_docker - pip install docker, but it is installed


i want to check my docker containers. All info you can see in the attached screenshots.

The server is installed like this:

checkmk version: 1.6.0p10 RAW Edition

the client and the plugin is from this version.

what is wrong or forgot I something

reagrds, gerald

Your Raspi is also your Docker server?

If yes what happens if you do a “import docker” inside your python environment? As you error message only happens if an import error occurs.

It is also possible to test the script with the command line options “–debug” and “-v” for a little bit more output.

Hi @amrheing,

Give a look at this post

hey folks,

I found the solution

# pip uninstall docker
# apt install python-docker

then it works fine. maybe it is special to a raspberry, I do not know this

that was the output - and the way to find the solution

pi@raspy4:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import docker
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/docker/”, line 2, in
from .api import APIClient
File “/usr/local/lib/python2.7/dist-packages/docker/api/”, line 2, in
from .client import APIClient
File “/usr/local/lib/python2.7/dist-packages/docker/api/”, line 10, in
from .build import BuildApiMixin
File “/usr/local/lib/python2.7/dist-packages/docker/api/”, line 6, in
from … import auth
File “/usr/local/lib/python2.7/dist-packages/docker/”, line 9, in
from .utils import config
File “/usr/local/lib/python2.7/dist-packages/docker/utils/”, line 3, in
from .decorators import check_resource, minimum_version, update_headers
File “/usr/local/lib/python2.7/dist-packages/docker/utils/”, line 4, in
from . import utils
File “/usr/local/lib/python2.7/dist-packages/docker/utils/”, line 13, in
from … import tls
File “/usr/local/lib/python2.7/dist-packages/docker/”, line 5, in
from .transport import SSLHTTPAdapter
File “/usr/local/lib/python2.7/dist-packages/docker/transport/”, line 3, in
from .ssladapter import SSLHTTPAdapter
File “/usr/local/lib/python2.7/dist-packages/docker/transport/”, line 23, in
from backports.ssl_match_hostname import match_hostname
ImportError: No module named ssl_match_hostname


Yes, the server is also a raspberry. it is here at home, monitoring my smart home and some other devices.

Good to hear that this little debug leads to the cause of your problem :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.