Docker Community Forums

Share and learn in the Docker community.

Install storage plugin fails (logs don't get saved to Storage account in Azure)


#1

This problems happens in the fresh swarm.

I discovered that storage plugin doesn’t run and cloudstor plugin is disabled:

$ docker plugin ls
ID                  NAME                DESCRIPTION                       ENABLED
12e884f385c5        cloudstor:azure     cloud storage plugin for Docker   false

$ docker ps -a

...
39e5a344bda5        docker4x/init-azure:18.03.0-ce-azure1                  "/entry.sh"              27 minutes ago      Exited (0) 26 minutes ago                                        modest_wescoff
...

Some extracts from the logs:
$ docker logs modest_wescoff

CHANNEL=
EDITION_ADDON=
RESOURCE_MANAGER_ENDPOINT=
STORAGE_ENDPOINT=
ACTIVE_DIRECTORY_ENDPOINT=
SERVICE_MANAGEMENT_ENDPOINT=
...
Install cloudstor ...
Install storage plugin
No handlers could be found for logger "msrestazure.azure_active_directory"
Traceback (most recent call last):
  File "/usr/bin/sakey.py", line 9, in <module>
    from azure.storage.table import TableService, Entity
ImportError: No module named table
Error response from daemon: plugin cloudstor:azure already exists

How to get the storage plugin working and get logging to Storage account in Azure?


#2

Managed to enable cloudstor plugin (followed an advice on https://github.com/docker/for-azure/issues/64), and now I don’t get the error in init-azure container anymore, but still can’t see storage plugin in the list. Also, still can’t get logs get to the Storage account.